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
cbffcd2f
Commit
cbffcd2f
authored
Aug 18, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4867 from louyihua/localization-cms
Translation & secure-aware changes to studio's settings page
parents
70d47fb5
14cd7d77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
cms/templates/settings.html
+16
-2
No files found.
cms/templates/settings.html
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>
...
...
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