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
17a3f556
Commit
17a3f556
authored
Nov 03, 2014
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix track selection header copy
parent
f76288c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
12 deletions
+40
-12
lms/djangoapps/verify_student/tests/test_views.py
+2
-2
lms/templates/verify_student/_verification_header.html
+38
-10
No files found.
lms/djangoapps/verify_student/tests/test_views.py
View file @
17a3f556
...
...
@@ -186,12 +186,12 @@ class TestVerifyView(ModuleStoreTestCase):
response
=
self
.
client
.
get
(
url
)
self
.
assertEquals
(
response
.
status_code
,
302
)
def
test_valid_course_
registration
_text
(
self
):
def
test_valid_course_
enrollment
_text
(
self
):
url
=
reverse
(
'verify_student_verify'
,
kwargs
=
{
"course_id"
:
unicode
(
self
.
course_key
)})
response
=
self
.
client
.
get
(
url
)
self
.
assertIn
(
"You are now enrolled in
the audit track
"
,
response
.
content
)
self
.
assertIn
(
"You are now enrolled in"
,
response
.
content
)
def
test_valid_course_upgrade_text
(
self
):
url
=
reverse
(
'verify_student_verify'
,
...
...
lms/templates/verify_student/_verification_header.html
View file @
17a3f556
...
...
@@ -3,18 +3,37 @@
<header
class=
"page-header"
>
<h2
class=
"title"
>
<span
class=
"wrapper-sts"
>
<
%
organization =
'<span class="sts-course-org">'
+
course_org
+
'</
span
>
' %>
<
%
course_name =
'<span class="sts-course-number">'
+
course_num
+
'</
span
>
<span
class=
"sts-course-name"
>
' + 'course_name' + '
</span>
' %>
% if upgrade:
<span
class=
"sts-label"
>
${_("You are upgrading your enrollment for")}
</span>
<span
class=
"sts-label"
>
${_("You are upgrading your enrollment for {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
)}
</span>
% elif reverify:
<span
class=
"sts-label"
>
${_("You are re-verifying for")}
</span>
<span
class=
"sts-label"
>
${_("You are re-verifying for {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
)}
</span>
% elif modes_dict and "professional" in modes_dict:
<span
class=
"sts-label"
>
${_("You are registering for")}
</span>
<span
class=
"sts-label"
>
${_("You are enrolling in {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
)}
</span>
% else:
<span
class=
"sts-label"
>
${_("Congrats! You are now enrolled in the audit track")}
</span>
<span
class=
"sts-label"
>
${_("Congrats! You are now enrolled in {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
)}
</span>
% endif
<span
class=
"sts-course-org"
>
${course_org}'s
</span>
<span
class=
"sts-course-number"
>
${course_num}
</span>
<span
class=
"sts-course-name"
>
${course_name}
</span>
</span>
% if modes_dict and "professional" in modes_dict:
...
...
@@ -27,11 +46,20 @@
<span
class=
"sts-track"
>
<span
class=
"sts-track-value"
>
% if upgrade:
<span
class=
"context"
>
${_("Upgrading to:")}
</span>
${_("Verified")}
${_("{span_start}Upgrading to:{span_end} Verified").format(
span_start='
<span
class=
"context"
>
',
span_end='
</span>
'
)}
% elif reverify:
<span
class=
"context"
>
${_("Re-verifying for:")}
</span>
${_("Verified")}
${_("{span_start}Re-verifying for:{span_end} Verified").format(
span_start='
<span
class=
"context"
>
',
span_end='
</span>
'
)}
% else:
<span
class=
"context"
>
${_("Registering as: ")}
</span>
${_("Verified")}
${_("{span_start}Enrolling as:{span_end} Verified").format(
span_start='
<span
class=
"context"
>
',
span_end='
</span>
'
)}
% endif
</span>
</span>
...
...
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