Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
cbffcd2f
Commit
cbffcd2f
authored
10 years ago
by
Sarina Canelake
Browse files
Options
Downloads
Plain Diff
Merge pull request #4867 from louyihua/localization-cms
Translation & secure-aware changes to studio's settings page
parents
70d47fb5
14cd7d77
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cms/templates/settings.html
+16
-2
16 additions, 2 deletions
cms/templates/settings.html
with
16 additions
and
2 deletions
cms/templates/settings.html
+
16
−
2
View file @
cbffcd2f
...
...
@@ -7,6 +7,7 @@
<
%!
from
django.utils.translation
import
ugettext
as
_
from
contentstore
import
utils
import
urllib
%
>
<
%
block
name=
"header_extras"
>
...
...
@@ -93,13 +94,26 @@ require(["domReady!", "jquery", "js/models/settings/course_details", "js/views/s
<div
class=
"note note-promotion note-promotion-courseURL has-actions"
>
<h3
class=
"title"
>
${_("Course Summary Page")}
<span
class=
"tip"
>
${_("(for student enrollment and access)")}
</span></h3>
<div
class=
"copy"
>
<p><a
class=
"link-courseURL"
rel=
"external"
href=
"https:${lms_link_for_about_page}"
>
https:${lms_link_for_about_page}
</a></p>
<
%
link_for_about_page =
("https:"
if
is_secure
else
"
http:
")
+
lms_link_for_about_page
%
>
<p><a
class=
"link-courseURL"
rel=
"external"
href=
"${link_for_about_page}"
>
${link_for_about_page}
</a></p>
</div>
<ul
class=
"list-actions"
>
<li
class=
"action-item"
>
<
%
email_subject =
urllib.quote(_("Enroll
in
{
course_display_name
}").
format
(
course_display_name =
context_course.display_name_with_default
).
encode
("
utf-8
"))
email_body =
urllib.quote(_('The
course
"{
course_display_name
}",
provided
by
{
platform_name
},
is
open
for
enrollment.
Please
navigate
to
this
course
at
{
link_for_about_page
}
to
enroll.
').
format
(
course_display_name =
context_course.display_name_with_default,
platform_name =
settings.PLATFORM_NAME,
link_for_about_page =
link_for_about_page
).
encode
("
utf-8
"))
%
>
<a
title=
"${_('Send a note to students via email')}"
href=
"mailto:someone@domain.com?Subject=
Enroll%20in%20${context_course.display_name_with_default}&body=The%20course%20"${context_course.display_name_with_default}",%20provided%20by%20edX,%20is%20open%20for%20enrollment.%20Please%20navigate%20to%20this%20course%20at%20https:${lms_link_for_about_page}%20to%20enroll.
"
class=
"action action-primary"
>
href=
"mailto:someone@domain.com?Subject=
${email_subject}&body=${email_body}
"
class=
"action action-primary"
>
<i
class=
"icon-envelope-alt icon-inline"
></i>
${_("Invite your students")}
</a>
</li>
</ul>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment