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
4a496e7d
Commit
4a496e7d
authored
Mar 24, 2016
by
sanfordstudent
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11921 from edx/sstudent/safe_welcome_back
making the welcome_back template safe
parents
78016db3
d64b6d35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
lms/templates/courseware/welcome-back.html
+7
-5
No files found.
lms/templates/courseware/welcome-back.html
View file @
4a496e7d
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
%
>
<h2>
${chapter_module.display_name_with_default
_escaped
}
</h2>
<h2>
${chapter_module.display_name_with_default}
</h2>
<p>
${
_("You were most recently in {section_link}. If you\'re done with that, choose another section on the left."
).format(
section_link=
u'
<a
href=
"{url}"
>
{section_name}
</a>
'
.format(
<p>
${
Text(_("You were most recently in {section_link}. If you're done with that, choose another section on the left.")
).format(
section_link=
HTML('
<a
href=
"{url}"
>
{section_name}
</a>
')
.format(
url=prev_section_url,
section_name=prev_section.display_name_with_default
_escaped
,
section_name=prev_section.display_name_with_default,
)
)}
</p>
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