Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
e6edba18
Commit
e6edba18
authored
9 years ago
by
Bill DeRusha
Browse files
Options
Downloads
Patches
Plain Diff
Safe Templatize: wiki templates
parent
679cdc37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/templates/wiki/includes/article_menu.html
+7
-5
7 additions, 5 deletions
lms/templates/wiki/includes/article_menu.html
lms/templates/wiki/includes/breadcrumbs.html
+1
-0
1 addition, 0 deletions
lms/templates/wiki/includes/breadcrumbs.html
with
8 additions
and
5 deletions
lms/templates/wiki/includes/article_menu.html
+
7
−
5
View file @
e6edba18
## 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
...
...
This diff is collapsed.
Click to expand it.
lms/templates/wiki/includes/breadcrumbs.html
+
1
−
0
View file @
e6edba18
## mako
<
%
page
expression_filter=
"h"
/>
<
%!
from
django.core.urlresolvers
import
reverse
from
django.utils.translation
import
ugettext
as
_
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment