Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5122c292
Commit
5122c292
authored
Jan 30, 2014
by
davestgermain
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2343 from edx/dstgermain/a11y-page-titles
Added more descriptive page titles.
parents
75bd860a
636eab8b
Hide whitespace changes
Inline
Side-by-side
Showing
67 changed files
with
151 additions
and
84 deletions
+151
-84
common/djangoapps/external_auth/tests/test_shib.py
+1
-1
common/djangoapps/microsite_configuration/__init__.py
+1
-0
common/djangoapps/microsite_configuration/templatetags/__init__.py
+0
-0
common/djangoapps/microsite_configuration/templatetags/microsite.py
+41
-0
common/djangoapps/student/tests/test_login.py
+1
-1
common/djangoapps/terrain/steps.py
+1
-1
common/lib/xmodule/xmodule/js/src/sequence/display.coffee
+6
-1
common/templates/course_modes/choose.html
+2
-3
common/test/test_microsites/test_microsite/templates/static_templates/tos.html
+1
-1
lms/djangoapps/courseware/features/high-level-tabs.feature
+2
-2
lms/djangoapps/courseware/tests/test_microsites.py
+1
-1
lms/djangoapps/courseware/views.py
+1
-1
lms/envs/common.py
+1
-0
lms/templates/course_groups/debug.html
+1
-1
lms/templates/courseware/course_about.html
+1
-1
lms/templates/courseware/courses.html
+1
-1
lms/templates/courseware/courseware-error.html
+1
-1
lms/templates/courseware/courseware.html
+12
-1
lms/templates/courseware/info.html
+6
-5
lms/templates/courseware/instructor_dashboard.html
+3
-1
lms/templates/courseware/mktg_coming_soon.html
+1
-1
lms/templates/courseware/mktg_course_about.html
+1
-1
lms/templates/courseware/news.html
+1
-1
lms/templates/courseware/progress.html
+1
-1
lms/templates/courseware/static_tab.html
+1
-1
lms/templates/courseware/syllabus.html
+1
-1
lms/templates/dashboard.html
+1
-1
lms/templates/discussion/index.html
+1
-1
lms/templates/discussion/user_profile.html
+1
-1
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
+4
-1
lms/templates/instructor/staff_grading.html
+1
-1
lms/templates/login.html
+1
-1
lms/templates/main.html
+7
-3
lms/templates/main_django.html
+2
-3
lms/templates/open_ended_problems/combined_notifications.html
+1
-1
lms/templates/open_ended_problems/open_ended_flagged_problems.html
+1
-1
lms/templates/open_ended_problems/open_ended_problems.html
+1
-1
lms/templates/register-shib.html
+1
-1
lms/templates/register.html
+1
-1
lms/templates/seq_module.html
+1
-0
lms/templates/shoppingcart/download_report.html
+1
-1
lms/templates/shoppingcart/error.html
+1
-1
lms/templates/shoppingcart/list.html
+1
-1
lms/templates/shoppingcart/receipt.html
+1
-1
lms/templates/shoppingcart/verified_cert_receipt.html
+1
-1
lms/templates/static_htmlbook.html
+1
-2
lms/templates/static_pdfbook.html
+3
-5
lms/templates/static_templates/404.html
+1
-1
lms/templates/static_templates/about.html
+1
-1
lms/templates/static_templates/contact.html
+1
-1
lms/templates/static_templates/copyright.html
+1
-1
lms/templates/static_templates/faq.html
+1
-1
lms/templates/static_templates/help.html
+1
-1
lms/templates/static_templates/honor.html
+1
-1
lms/templates/static_templates/jobs.html
+1
-1
lms/templates/static_templates/media-kit.html
+1
-1
lms/templates/static_templates/press.html
+2
-1
lms/templates/static_templates/privacy.html
+2
-1
lms/templates/static_templates/tos.html
+1
-1
lms/templates/staticbook.html
+1
-1
lms/templates/university_profile/edge.html
+1
-1
lms/templates/verify_student/photo_reverification.html
+2
-1
lms/templates/verify_student/photo_verification.html
+2
-3
lms/templates/verify_student/reverification_confirmation.html
+2
-2
lms/templates/verify_student/show_requirements.html
+2
-3
lms/templates/verify_student/verified.html
+2
-1
lms/templates/wiki/base.html
+2
-2
No files found.
common/djangoapps/external_auth/tests/test_shib.py
View file @
5122c292
...
...
@@ -202,7 +202,7 @@ class ShibSPTest(ModuleStoreTestCase):
else
:
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertContains
(
response
,
(
"
<title>Preferences for {platform_name}</title>
"
(
"
Preferences for {platform_name}
"
.
format
(
platform_name
=
settings
.
PLATFORM_NAME
)))
# no audit logging calls
self
.
assertEquals
(
len
(
audit_log_calls
),
0
)
...
...
common/djangoapps/microsite_configuration/__init__.py
View file @
5122c292
from
.templatetags.microsite
import
page_title_breadcrumbs
common/djangoapps/microsite_configuration/templatetags/__init__.py
0 → 100644
View file @
5122c292
common/djangoapps/microsite_configuration/templatetags/microsite.py
0 → 100644
View file @
5122c292
"""
Template tags and helper functions for displaying breadcrumbs in page titles
based on the current micro site.
"""
from
django
import
template
from
django.conf
import
settings
from
microsite_configuration.middleware
import
MicrositeConfiguration
register
=
template
.
Library
()
def
page_title_breadcrumbs
(
*
crumbs
,
**
kwargs
):
"""
This function creates a suitable page title in the form:
Specific | Less Specific | General | edX
It will output the correct platform name for the request.
Pass in a `separator` kwarg to override the default of " | "
"""
separator
=
kwargs
.
get
(
"separator"
,
" | "
)
if
crumbs
:
return
'{}{}{}'
.
format
(
separator
.
join
(
crumbs
),
separator
,
platform_name
())
else
:
return
platform_name
()
@register.simple_tag
(
name
=
"page_title_breadcrumbs"
,
takes_context
=
True
)
def
page_title_breadcrumbs_tag
(
context
,
*
crumbs
):
"""
Django template that creates breadcrumbs for page titles:
{
%
page_title_breadcrumbs "Specific" "Less Specific" General
%
}
"""
return
page_title_breadcrumbs
(
*
crumbs
)
@register.simple_tag
(
name
=
"platform_name"
)
def
platform_name
():
"""
Django template tag that outputs the current platform name:
{
%
platform_name
%
}
"""
return
MicrositeConfiguration
.
get_microsite_configuration_value
(
'platform_name'
,
settings
.
PLATFORM_NAME
)
\ No newline at end of file
common/djangoapps/student/tests/test_login.py
View file @
5122c292
...
...
@@ -255,7 +255,7 @@ class ExternalAuthShibTest(ModuleStoreTestCase):
noshib_response
=
self
.
client
.
get
(
TARGET_URL
,
follow
=
True
)
self
.
assertEqual
(
noshib_response
.
redirect_chain
[
-
1
],
(
'http://testserver/accounts/login?next={url}'
.
format
(
url
=
TARGET_URL
),
302
))
self
.
assertContains
(
noshib_response
,
(
"
<title>Log into your {platform_name} Account</title>
"
self
.
assertContains
(
noshib_response
,
(
"
Log into your {platform_name} Account | {platform_name}
"
.
format
(
platform_name
=
settings
.
PLATFORM_NAME
)))
self
.
assertEqual
(
noshib_response
.
status_code
,
200
)
...
...
common/djangoapps/terrain/steps.py
View file @
5122c292
...
...
@@ -57,7 +57,7 @@ def i_visit_the_dashboard(step):
@step
(
'I should be on the dashboard page$'
)
def
i_should_be_on_the_dashboard
(
step
):
assert
world
.
is_css_present
(
'section.container.dashboard'
)
assert
world
.
browser
.
title
==
'Dashboard'
assert
'Dashboard'
in
world
.
browser
.
title
@step
(
u'I (?:visit|access|open) the courses page$'
)
...
...
common/lib/xmodule/xmodule/js/src/sequence/display.coffee
View file @
5122c292
...
...
@@ -5,6 +5,7 @@ class @Sequence
@
num_contents
=
@
contents
.
length
@
id
=
@
el
.
data
(
'id'
)
@
ajaxUrl
=
@
el
.
data
(
'ajax-url'
)
@
base_page_title
=
" | "
+
document
.
title
@
initProgress
()
@
bind
()
@
render
parseInt
(
@
el
.
data
(
'position'
))
...
...
@@ -18,7 +19,10 @@ class @Sequence
initProgress
:
->
@
progressTable
=
{}
# "#problem_#{id}" -> progress
updatePageTitle
:
->
# update the page title to include the current section
document
.
title
=
@
link_for
(
@
position
).
data
(
'title'
)
+
@
base_page_title
hookUpProgressEvent
:
->
$
(
'.problems-wrapper'
).
bind
'progressChanged'
,
@
updateProgress
...
...
@@ -100,6 +104,7 @@ class @Sequence
@
position
=
new_position
@
toggleArrows
()
@
hookUpProgressEvent
()
@
updatePageTitle
()
sequence_links
=
@
$
(
'#seq_content a.seqnav'
)
sequence_links
.
click
@
goto
...
...
common/templates/course_modes/choose.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"bodyclass"
>
register verification-process step-select-track ${'is-upgrading' if upgrade else ''}
</
%
block>
<
%
block
name=
"title"
>
<title>
<
%
block
name=
"pagetitle"
>
%if upgrade:
${_("Upgrade Your Registration for {} | Choose Your Track").format(course_name)}
%else:
${_("Register for {} | Choose Your Track").format(course_name)}
%endif
</title>
</
%
block>
<
%
block
name=
"js_extra"
>
...
...
common/test/test_microsites/test_microsite/templates/static_templates/tos.html
View file @
5122c292
...
...
@@ -4,7 +4,7 @@
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
block
name=
"
title"
><title>
Terms of Service
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Terms of Service")}
</
%
block>
<section
class=
"static-container tos"
>
<h1>
edX Terms of Service
</h1>
...
...
lms/djangoapps/courseware/features/high-level-tabs.feature
View file @
5122c292
...
...
@@ -13,6 +13,6 @@ Scenario: I can navigate to all high - level tabs in a course
|
TabName
|
PageTitle
|
|
Courseware
|
6.002x
Courseware
|
|
Course
Info
|
6.002x
Course
Info
|
|
Custom
Tab
|
6.002x
Custom
Tab
|
|
Wiki
|
edX
Wiki
|
|
Custom
Tab
|
Custom
Tab
|
6.002x
|
|
Wiki
|
Wiki
|
edX
|
|
Progress
|
6.002x
Progress
|
lms/djangoapps/courseware/tests/test_microsites.py
View file @
5122c292
...
...
@@ -72,7 +72,7 @@ class TestMicrosites(ModuleStoreTestCase, LoginEnrollmentTestCase):
self
.
assertContains
(
resp
,
'This is a Test Microsite Overlay'
)
# Overlay test message
self
.
assertContains
(
resp
,
'test_microsite/images/header-logo.png'
)
# logo swap
self
.
assertContains
(
resp
,
'test_microsite/css/test_microsite.css'
)
# css override
self
.
assertContains
(
resp
,
'
<title>Test Microsite</title>
'
)
# page title
self
.
assertContains
(
resp
,
'
Test Microsite
'
)
# page title
# assert that test course display name is visible
self
.
assertContains
(
resp
,
'Robot_Super_Course'
)
...
...
lms/djangoapps/courseware/views.py
View file @
5122c292
...
...
@@ -328,7 +328,7 @@ def index(request, course_id, chapter=None, section=None,
# Save where we are in the chapter
save_child_position
(
chapter_module
,
section
)
context
[
'fragment'
]
=
section_module
.
render
(
'student_view'
)
context
[
'section_title'
]
=
section_descriptor
.
display_name_with_default
else
:
# section is none, so display a message
prev_section
=
get_current_child
(
chapter_module
)
...
...
lms/envs/common.py
View file @
5122c292
...
...
@@ -1068,6 +1068,7 @@ INSTALLED_APPS = (
# Dark-launching languages
'dark_lang'
,
'microsite_configuration'
,
)
######################### MARKETING SITE ###############################
...
...
lms/templates/course_groups/debug.html
View file @
5122c292
...
...
@@ -3,7 +3,7 @@
<html
lang=
"${LANGUAGE_CODE}"
>
<head>
## "edX" should not be translated
<
%
block
name=
"
title"
><title>
edX
</title
></
%
block>
<
%
block
name=
"
pagetitle"
></
%
block>
<script
type=
"text/javascript"
src=
"/static/js/vendor/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/course_groups/cohorts.js"
></script>
...
...
lms/templates/courseware/course_about.html
View file @
5122c292
...
...
@@ -113,7 +113,7 @@
<script
src=
"${static.url('js/course_info.js')}"
></script>
</
%
block>
<
%
block
name=
"
title"
><title>
${_("About {course.display_number_with_default}").format(course=course) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("About {course.display_number_with_default}").format(course=course) | h}
</
%
block>
<section
class=
"course-info"
>
<header
class=
"course-profile"
>
...
...
lms/templates/courseware/courses.html
View file @
5122c292
...
...
@@ -3,7 +3,7 @@
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
block
name=
"
title"
><title>
${_("Courses")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Courses")}
</
%
block>
<
%!
from
microsite_configuration
.
middleware
import
MicrositeConfiguration
%
>
<section
class=
"find-courses"
>
...
...
lms/templates/courseware/courseware-error.html
View file @
5122c292
...
...
@@ -2,7 +2,7 @@
<
%
inherit
file=
"/main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
block
name=
"bodyclass"
>
courseware
</
%
block>
<
%
block
name=
"
title"
><title>
${_("Courseware")} - ${settings.PLATFORM_NAME}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Courseware")}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
...
...
lms/templates/courseware/courseware.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
microsite_configuration
import
page_title_breadcrumbs
%
>
<
%
inherit
file=
"/main.html"
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
def
name=
"course_name()"
>
<
%
return
_
("{
course_number
}
Courseware
").
format
(
course_number=
course.display_number_with_default)
%
>
</
%
def>
<
%
block
name=
"bodyclass"
>
courseware ${course.css_class}
</
%
block>
<
%
block
name=
"title"
><title>
${_("{course_number} Courseware").format(course_number=course.display_number_with_default) | h}
</title></
%
block>
<
%
block
name=
"title"
><title>
% if section_title:
${page_title_breadcrumbs(section_title, course_name())}
% else:
${page_title_breadcrumbs(course_name())}
%endif
</title></
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
...
...
lms/templates/courseware/info.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
courseware
.
courses
import
get_course_info_section
%
>
<
%
inherit
file=
"/main.html"
/>
<
%
block
name=
"bodyclass"
>
${course.css_class}
</
%
block>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
block
name=
"pagetitle"
>
${_("{course.display_number_with_default} Course Info").format(course=course) | h}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
<
%
static:css
group=
'style-course'
/>
</
%
block>
<
%
block
name=
"title"
><title>
${_("{course.display_number_with_default} Course Info").format(course=course) | h}
</title></
%
block>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='info'"
/>
<
%!
from
courseware
.
courses
import
get_course_info_section
%
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
src=
"${static.url('js/jquery.treeview.js')}"
></script>
...
...
@@ -23,6 +23,7 @@ $(document).ready(function(){
</script>
</
%
block>
<
%
block
name=
"bodyclass"
>
${course.css_class}
</
%
block>
<section
class=
"container"
>
<div
class=
"info-wrapper"
>
% if user.is_authenticated():
...
...
lms/templates/courseware/instructor_dashboard.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"/main.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
block
name=
"pagetitle"
>
${_("Instructor Dashboard")}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
<
%
static:css
group=
'style-course'
/>
...
...
lms/templates/courseware/mktg_coming_soon.html
View file @
5122c292
...
...
@@ -8,7 +8,7 @@
<
%
inherit
file=
"../mktg_iframe.html"
/>
<
%
block
name=
"
title"
><title>
${_("About {course_id}").format(course_id=course_id)}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("About {course_id}").format(course_id=course_id)}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-iframe-content view-partial-mktgregister
</
%
block>
...
...
lms/templates/courseware/mktg_course_about.html
View file @
5122c292
...
...
@@ -8,7 +8,7 @@
<
%
inherit
file=
"../mktg_iframe.html"
/>
<
%
block
name=
"
title"
><title>
${_("About {course_number}").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("About {course_number}").format(course_number=course.display_number_with_default) | h}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-iframe-content view-partial-mktgregister
</
%
block>
...
...
lms/templates/courseware/news.html
View file @
5122c292
...
...
@@ -2,7 +2,7 @@
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
block
name=
"bodyclass"
>
courseware news
</
%
block>
<
%
block
name=
"
title"
><title>
${_("News - MITx 6.002x")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("News - MITx 6.002x")}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
...
...
lms/templates/courseware/progress.html
View file @
5122c292
...
...
@@ -9,7 +9,7 @@
<
%
namespace
name=
"progress_graph"
file=
"/courseware/progress_graph.js"
/>
<
%
block
name=
"
title"
><title>
${_("{course_number} Progress").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("{course_number} Progress").format(course_number=course.display_number_with_default) | h}
</
%
block>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
...
...
lms/templates/courseware/static_tab.html
View file @
5122c292
...
...
@@ -7,7 +7,7 @@
<
%
static:css
group=
'style-course'
/>
</
%
block>
<
%
block
name=
"
title"
><title>
${course.display_number_with_default | h} ${tab['name']}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${tab['name']} | ${course.display_number_with_default | h}
</
%
block>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='static_tab_{0}'.format(tab['url_slug'])"
/>
...
...
lms/templates/courseware/syllabus.html
View file @
5122c292
...
...
@@ -7,7 +7,7 @@
<
%
static:css
group=
'style-course'
/>
</
%
block>
<
%
block
name=
"
title"
><title>
${_("{course.display_number_with_default} Course Info").format(course=course) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("{course.display_number_with_default} Course Info").format(course=course) | h}
</
%
block>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='syllabus'"
/>
<
%!
...
...
lms/templates/dashboard.html
View file @
5122c292
...
...
@@ -8,7 +8,7 @@
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
block
name=
"
title"
><title>
${_("Dashboard")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Dashboard")}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-dashboard is-authenticated
</
%
block>
<
%
block
name=
"js_extra"
>
...
...
lms/templates/discussion/index.html
View file @
5122c292
...
...
@@ -6,7 +6,7 @@
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
block
name=
"bodyclass"
>
discussion
</
%
block>
<
%
block
name=
"
title"
><title>
${_("Discussion - {course_number}").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Discussion - {course_number}").format(course_number=course.display_number_with_default) | h}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
...
...
lms/templates/discussion/user_profile.html
View file @
5122c292
...
...
@@ -4,7 +4,7 @@
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
block
name=
"bodyclass"
>
discussion
</
%
block>
<
%
block
name=
"
title"
><title>
${_("Discussion - {course_number}").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Discussion - {course_number}").format(course_number=course.display_number_with_default) | h}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
...
...
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"/main.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"/main.html"
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
## ----- Tips on adding something to the new instructor dashboard -----
...
...
@@ -16,6 +17,8 @@
## 5. Implement your standard django/python in lms/djangoapps/instructor/views/api.py
## 6. And tests go in lms/djangoapps/instructor/tests/
<
%
block
name=
"pagetitle"
>
${_("Instructor Dashboard")}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
<
%
static:css
group=
'style-course'
/>
...
...
lms/templates/instructor/staff_grading.html
View file @
5122c292
...
...
@@ -9,7 +9,7 @@
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/underscore-min.js')}"
></script>
</
%
block>
<
%
block
name=
"
title"
><title>
${_("{course_number} Staff Grading").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("{course_number} Staff Grading").format(course_number=course.display_number_with_default) | h}
</
%
block>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='staff_grading'"
/>
...
...
lms/templates/login.html
View file @
5122c292
...
...
@@ -5,7 +5,7 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
block
name=
"
title"
><title>
${_("Log into your {platform_name} Account").format(platform_name=platform_name)}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Log into your {platform_name} Account").format(platform_name=platform_name)}
</
%
block>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
...
...
lms/templates/main.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
microsite_configuration
.
middleware
import
MicrositeConfiguration
%
>
<
%!
from
microsite_configuration
import
page_title_breadcrumbs
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
from
django
.
utils
import
html
%
>
...
...
@@ -28,11 +29,14 @@
<!--[if gt IE 9]><!-->
<html
lang=
"${LANGUAGE_CODE}"
>
<!--<![endif]-->
<head>
<
%
block
name=
"title"
>
<title>
% if stanford_theme_enabled():
<title>
${_("Home")} | class.stanford.edu
</title>
${_("Home")} | class.stanford.edu
% else:
## "edX" should not be translated
<title>
${MicrositeConfiguration.get_microsite_configuration_value('platform_name', settings.PLATFORM_NAME)}
</title>
${page_title_breadcrumbs(self.pagetitle())}
</title>
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case
<!--<%block name="pagetitle" />-->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
...
...
lms/templates/main_django.html
View file @
5122c292
<!DOCTYPE html>
{% load compressed %}{% load sekizai_tags i18n %}{% load url from future %}{% load staticfiles %}
{% load compressed %}{% load sekizai_tags i18n
microsite
%}{% load url from future %}{% load staticfiles %}
<html
lang=
"{{LANGUAGE_CODE}}"
>
<head>
{# "edX" should *not* be translated #}
{% block title %}
<title>
edX
</title>
{% endblock %}
{% block title %}
<title>
{% platform_name %}
</title>
{% endblock %}
<link
rel=
"icon"
type=
"image/x-icon"
href=
"{% static "
images
/
favicon
.
ico
"
%}"
/>
...
...
lms/templates/open_ended_problems/combined_notifications.html
View file @
5122c292
...
...
@@ -8,7 +8,7 @@
<
%
static:css
group=
'style-course'
/>
</
%
block>
<
%
block
name=
"
title"
><title>
${_("{course_number} Combined Notifications").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("{course_number} Combined Notifications").format(course_number=course.display_number_with_default)}
</
%
block>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='open_ended'"
/>
...
...
lms/templates/open_ended_problems/open_ended_flagged_problems.html
View file @
5122c292
...
...
@@ -8,7 +8,7 @@
<
%
static:css
group=
'style-course'
/>
</
%
block>
<
%
block
name=
"
title"
><title>
${_("{course_number} Flagged Open Ended Problems").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("{course_number} Flagged Open Ended Problems").format(course_number=course.display_number_with_default)}
</
%
block>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='open_ended_flagged_problems'"
/>
...
...
lms/templates/open_ended_problems/open_ended_problems.html
View file @
5122c292
...
...
@@ -8,7 +8,7 @@
<
%
static:css
group=
'style-course'
/>
</
%
block>
<
%
block
name=
"
title"
><title>
${_("{course_number} Open Ended Problems").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("{course_number} Open Ended Problems").format(course_number=course.display_number_with_default)}
</
%
block>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='open_ended_problems'"
/>
...
...
lms/templates/register-shib.html
View file @
5122c292
...
...
@@ -12,7 +12,7 @@
<
%!
from
datetime
import
date
%
>
<
%!
import
calendar
%
>
<
%
block
name=
"
title"
><title>
${_("Preferences for {platform_name}").format(platform_name=settings.PLATFORM_NAME)}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Preferences for {platform_name}").format(platform_name=settings.PLATFORM_NAME)}
</
%
block>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
...
...
lms/templates/register.html
View file @
5122c292
...
...
@@ -14,7 +14,7 @@
<
%!
from
datetime
import
date
%
>
<
%!
import
calendar
%
>
<
%
block
name=
"
title"
><title>
${_("Register for {platform_name}").format(platform_name=platform_name)}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Register for {platform_name}").format(platform_name=platform_name)}
</
%
block>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
...
...
lms/templates/seq_module.html
View file @
5122c292
...
...
@@ -17,6 +17,7 @@
<a
class=
"seq_${item['type']} inactive progress-${item['progress_status']}"
data-id=
"${item['id']}"
data-element=
"${idx+1}"
data-title=
"${item['title']}"
href=
"javascript:void(0);"
>
<p
aria-hidden=
"false"
>
${item['title']}
<span
class=
"sr"
>
, ${item['type']}
</span></p>
</a>
...
...
lms/templates/shoppingcart/download_report.html
View file @
5122c292
...
...
@@ -3,7 +3,7 @@
<
%!
from
django
.
conf
import
settings
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Download CSV Reports")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Download CSV Reports")}
</
%
block>
<section
class=
"container"
>
...
...
lms/templates/shoppingcart/error.html
View file @
5122c292
...
...
@@ -3,7 +3,7 @@
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Payment Error")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Payment Error")}
</
%
block>
<section
class=
"container"
>
...
...
lms/templates/shoppingcart/list.html
View file @
5122c292
...
...
@@ -4,7 +4,7 @@
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Your Shopping Cart")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Your Shopping Cart")}
</
%
block>
<section
class=
"container cart-list"
>
<h2>
${_("Your selected items:")}
</h2>
...
...
lms/templates/shoppingcart/receipt.html
View file @
5122c292
...
...
@@ -5,7 +5,7 @@
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"bodyclass"
>
purchase-receipt
</
%
block>
<
%
block
name=
"
title"
><title>
${_("Register for [Course Name] | Receipt (Order")} ${order.id})
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Register for [Course Name] | Receipt (Order")} ${order.id})
</
%
block>
<
%
block
name=
"content"
>
...
...
lms/templates/shoppingcart/verified_cert_receipt.html
View file @
5122c292
...
...
@@ -5,7 +5,7 @@
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"bodyclass"
>
register verification-process step-confirmation
</
%
block>
<
%
block
name=
"
title"
><title>
${_("Receipt (Order")} ${order.id})
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Receipt (Order")} ${order.id})
</
%
block>
<
%
block
name=
"content"
>
% if notification is not UNDEFINED:
...
...
lms/templates/static_htmlbook.html
View file @
5122c292
...
...
@@ -2,8 +2,7 @@
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
block
name=
"title"
><title>
${_('{course_number} Textbook').format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"pagetitle"
>
${_('{course_number} Textbook').format(course_number=course.display_number_with_default) | h}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
...
...
lms/templates/static_pdfbook.html
View file @
5122c292
...
...
@@ -2,13 +2,11 @@
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
block
name=
"title"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<title>
${_('{course_number} Textbook').format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"pagetitle"
>
${_('{course_number} Textbook').format(course_number=course.display_number_with_default) | h}
</
%
block>
<
%
block
name=
"headextra"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<
%
static:css
group=
'style-course-vendor'
/>
<
%
static:css
group=
'style-course'
/>
<
%
static:js
group=
'courseware'
/>
...
...
lms/templates/static_templates/404.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
404
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Page Not Found")}
</
%
block>
<section
class=
"outside-app"
>
<h1>
${_("Page not found")}
</h1>
...
...
lms/templates/static_templates/about.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Vision")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Vision")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Vision")}
</h1>
...
...
lms/templates/static_templates/contact.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Contact")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Contact")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Contact")}
</h1>
...
...
lms/templates/static_templates/copyright.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Copyright")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Copyright")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Copyright")}
</h1>
...
...
lms/templates/static_templates/faq.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("FAQ")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("FAQ")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("FAQ")}
</h1>
...
...
lms/templates/static_templates/help.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Help")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Help")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Help")}
</h1>
...
...
lms/templates/static_templates/honor.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Honor Code")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Honor Code")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Honor Code")}
</h1>
...
...
lms/templates/static_templates/jobs.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Jobs")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Jobs")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Jobs")}
</h1>
...
...
lms/templates/static_templates/media-kit.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Media Kit")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Media Kit")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Media Kit")}
</h1>
...
...
lms/templates/static_templates/press.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("In the Press")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("In the Press")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("In the Press")}
</h1>
...
...
lms/templates/static_templates/privacy.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Privacy Policy")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Privacy Policy")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Privacy Policy")}
</h1>
...
...
lms/templates/static_templates/tos.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"
title"
><title>
${_("Terms of Service")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Terms of Service")}
</
%
block>
<section
class=
"container about"
>
<h1>
${_("Terms of Service")}
</h1>
...
...
lms/templates/staticbook.html
View file @
5122c292
...
...
@@ -2,7 +2,7 @@
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
block
name=
"
title"
><title>
${_("{course_number} Textbook").format(course_number=course.display_number_with_default) | h}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("{course_number} Textbook").format(course_number=course.display_number_with_default) | h}
</
%
block>
<
%
block
name=
"headextra"
>
<
%
static:css
group=
'style-course-vendor'
/>
...
...
lms/templates/university_profile/edge.html
View file @
5122c292
...
...
@@ -4,7 +4,7 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
block
name=
"
title"
><title>
${_("edX edge")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("edX edge")}
</
%
block>
<
%
block
name=
"bodyclass"
>
no-header edge-landing
</
%
block>
<
%
block
name=
"content"
>
...
...
lms/templates/verify_student/photo_reverification.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
block
name=
"bodyclass"
>
register verification-process is-not-verified step-photos
</
%
block>
<
%
block
name=
"
title"
><title>
${_("Re-Verification")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Re-Verification")}
</
%
block>
<
%
block
name=
"js_extra"
>
<script
src=
"${static.url('js/vendor/responsive-carousel/responsive-carousel.js')}"
></script>
...
...
lms/templates/verify_student/photo_verification.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
block
name=
"bodyclass"
>
register verification-process step-photos ${'is-upgrading' if upgrade else ''}
</
%
block>
<
%
block
name=
"title"
>
<title>
<
%
block
name=
"pagetitle"
>
%if upgrade:
${_("Upgrade Your Registration for {} | Verification").format(course_name)}
%else:
${_("Register for {} | Verification").format(course_name)}
%endif
</title>
</
%
block>
<
%
block
name=
"js_extra"
>
...
...
lms/templates/verify_student/reverification_confirmation.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
block
name=
"bodyclass"
>
register verification-process is-not-verified step-confirmation
</
%
block>
<
%
block
name=
"
title"
><title>
${_("Re-Verification Submission Confirmation")}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Re-Verification Submission Confirmation")}
</
%
block>
<
%
block
name=
"js_extra"
>
<script
src=
"${static.url('js/vendor/responsive-carousel/responsive-carousel.js')}"
></script>
...
...
lms/templates/verify_student/show_requirements.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"bodyclass"
>
register verification-process step-requirements ${'is-upgrading' if upgrade else ''}
</
%
block>
<
%
block
name=
"title"
>
<title>
<
%
block
name=
"pagetitle"
>
%if upgrade:
${_("Upgrade Your Registration for {}").format(course_name)}
%else:
${_("Register for {}").format(course_name)}
%endif
</title>
</
%
block>
<
%
block
name=
"content"
>
...
...
lms/templates/verify_student/verified.html
View file @
5122c292
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
block
name=
"bodyclass"
>
register verification-process is-verified
</
%
block>
<
%
block
name=
"
title"
><title>
${_("Register for {} | Verification").format(course_name)}
</title>
</
%
block>
<
%
block
name=
"
pagetitle"
>
${_("Register for {} | Verification").format(course_name)}
</
%
block>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
...
...
lms/templates/wiki/base.html
View file @
5122c292
{% extends "main_django.html" %}
{% load compressed %}{% load sekizai_tags i18n %}{% load url from future %}{% load staticfiles %}
{% load compressed %}{% load sekizai_tags i18n
microsite
%}{% load url from future %}{% load staticfiles %}
{% block title %}
<title>
{% block pagetitle %}{% endblock %} |
edX Wiki
</title>
{% endblock %}
{% block title %}
<title>
{% block pagetitle %}{% endblock %} |
Wiki | {% platform_name %}
</title>
{% endblock %}
{% block headextra %}
{% compressed_css 'course' %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment