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
32f6bc07
Commit
32f6bc07
authored
Mar 24, 2016
by
Daniel Friedman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11887 from edx/dan-f/make-cms-404-safe
Make CMS 404 template safe by default
parents
5ec01207
c210d918
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
cms/templates/404.html
+13
-7
No files found.
cms/templates/404.html
View file @
32f6bc07
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
%
>
<
%
inherit
file=
"base.html"
/>
<
%
block
name=
"title"
>
${_("Page Not Found")}
</
%
block>
<
%
block
name=
"bodyclass"
>
view-util util-404
</
%
block>
...
...
@@ -11,12 +15,14 @@
<h1
class=
"title title-1"
>
${_("Page not found")}
</h1>
</header>
<article
class=
"content-primary"
role=
"main"
>
<p>
${_('The page that you were looking for was not found.')}
${_('Go back to the {homepage} or let us know about any pages that may have been moved at {email}.').format(
homepage='
<a
href=
"/"
>
homepage
</a>
',
email=u'
<a
href=
"mailto:{address}"
>
{address}
</a>
'.format(
address=settings.TECH_SUPPORT_EMAIL,
))}
<p>
${_('The page that you were looking for was not found.')}
${Text(_('Go back to the {homepage} or let us know about any pages that may have been moved at {email}.')).format(
homepage=HTML('
<a
href=
"/"
>
homepage
</a>
'),
email=HTML('
<a
href=
"mailto:{address}"
>
{address}
</a>
'.format(
address=Text(settings.TECH_SUPPORT_EMAIL)
))
)}
</p>
</article>
</section>
...
...
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