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
fb6f3a41
Commit
fb6f3a41
authored
Apr 03, 2016
by
Bill DeRusha
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11920 from edx/bderusha/st-wiki
Safe Templatize: wiki templates
parents
ab0cbfff
e6edba18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
lms/templates/wiki/includes/article_menu.html
+7
-5
lms/templates/wiki/includes/breadcrumbs.html
+1
-0
No files found.
lms/templates/wiki/includes/article_menu.html
View file @
fb6f3a41
## 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
%
>
...
...
@@ -9,7 +11,7 @@
<a
href=
"${reverse('wiki:get', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<i
class=
"icon fa fa-eye"
></i>
${_("View")}
${
_("{span_start}(active){span_end}").format(span_start="
<span
class=
'sr'
>
", span_end="
</span>
"
) if selected_tab == "view" else ""}
${
Text(_("{span_start}(active){span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == "view" else ""}
</a>
</li>
...
...
@@ -18,7 +20,7 @@
<a
href=
"${reverse('wiki:edit', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<i
class=
"icon fa fa-pencil"
></i>
${_("Edit")}
${
_("{span_start}(active){span_end}").format(span_start="
<span
class=
'sr'
>
", span_end="
</span>
"
) if selected_tab == "edit" else ""}
${
Text(_("{span_start}(active){span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == "edit" else ""}
</a>
</li>
%endif
...
...
@@ -27,7 +29,7 @@
<a
href=
"${reverse('wiki:history', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"
>
<i
class=
"icon fa fa-clock-o"
></i>
${_("Changes")}
${
_("{span_start}(active){span_end}").format(span_start="
<span
class=
'sr'
>
", span_end="
</span>
"
) if selected_tab == "history" else ""}
${
Text(_("{span_start}(active){span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == "history" else ""}
</a>
</li>
...
...
@@ -37,7 +39,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]}
${
_("{span_start}(active){span_end}").format(span_start="
<span
class=
'sr'
>
", span_end="
</span>
"
) if selected_tab == plugin.slug else ""}
${
Text(_("{span_start}(active){span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == plugin.slug else ""}
</a>
</li>
%endif
...
...
@@ -53,7 +55,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")}
${
_("{span_start}active{span_end}").format(span_start="
<span
class=
'sr'
>
(", span_end=")
</span>
"
) if selected_tab == "settings" else ""}
${
Text(_("{span_start}active{span_end}")).format(span_start=HTML("
<span
class=
'sr'
>
"), span_end=HTML("
</span>
")
) if selected_tab == "settings" else ""}
</a>
</li>
%endif
...
...
lms/templates/wiki/includes/breadcrumbs.html
View file @
fb6f3a41
## 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