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
f51f7eab
Commit
f51f7eab
authored
Apr 11, 2016
by
Bill DeRusha
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12111 from edx/bderusha/revert-wiki-mako-changes
Revert "Safe Templatize: wiki templates"
parents
17d8fdb5
f4208e7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
lms/templates/wiki/includes/article_menu.html
+5
-7
lms/templates/wiki/includes/breadcrumbs.html
+0
-1
No files found.
lms/templates/wiki/includes/article_menu.html
View file @
f51f7eab
## mako
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
from
wiki
.
core
.
permissions
import
can_change_permissions
%
>
...
...
@@ -11,7 +9,7 @@
<a
href=
"${reverse('wiki:get', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<i
class=
"icon fa fa-eye"
></i>
${_("View")}
${
Text(_("{span_start}(active){span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == "view" else ""}
${
_("{span_start}(active){span_end}").format(span_start="
<span
class=
'sr'
>
", span_end="
</span>
"
) if selected_tab == "view" else ""}
</a>
</li>
...
...
@@ -20,7 +18,7 @@
<a
href=
"${reverse('wiki:edit', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<i
class=
"icon fa fa-pencil"
></i>
${_("Edit")}
${
Text(_("{span_start}(active){span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == "edit" else ""}
${
_("{span_start}(active){span_end}").format(span_start="
<span
class=
'sr'
>
", span_end="
</span>
"
) if selected_tab == "edit" else ""}
</a>
</li>
%endif
...
...
@@ -29,7 +27,7 @@
<a
href=
"${reverse('wiki:history', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<i
class=
"icon fa fa-clock-o"
></i>
${_("Changes")}
${
Text(_("{span_start}(active){span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == "history" else ""}
${
_("{span_start}(active){span_end}").format(span_start="
<span
class=
'sr'
>
", span_end="
</span>
"
) if selected_tab == "history" else ""}
</a>
</li>
...
...
@@ -39,7 +37,7 @@
<a
href=
"${reverse('wiki:plugin', kwargs={'slug' : plugin.slug, 'article_id' : article.id, 'path' : urlpath.path}) }"
>
<i
class=
"icon fa fa-file ${plugin.article_tab[1]}"
></i>
${plugin.article_tab[0]}
${
Text(_("{span_start}(active){span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == plugin.slug else ""}
${
_("{span_start}(active){span_end}").format(span_start="
<span
class=
'sr'
>
", span_end="
</span>
"
) if selected_tab == plugin.slug else ""}
</a>
</li>
%endif
...
...
@@ -55,7 +53,7 @@ ${_("This should be enabled for all non-anonymous users once the notifications a
<a
href=
"${reverse('wiki:settings', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<i
class=
"icon fa fa-cog"
></i>
${_("Settings")}
${
Text(_("{span_start}active{span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == "settings" else ""}
${
_("{span_start}active{span_end}").format(span_start="
<span
class=
'sr'
>
(", span_end=")
</span>
"
) if selected_tab == "settings" else ""}
</a>
</li>
%endif
...
...
lms/templates/wiki/includes/breadcrumbs.html
View file @
f51f7eab
## mako
<
%
page
expression_filter=
"h"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
from
django
.
utils
.
translation
import
ugettext
as
_
...
...
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