Commit 813c8c4c by Diana Huang

Merge pull request #1426 from edx/diana/django-wiki-colors

Better indication of what mode is active in the wiki.
parents 4a921e47 52ed7b27
...@@ -277,6 +277,7 @@ section.wiki { ...@@ -277,6 +277,7 @@ section.wiki {
&.active { &.active {
a { a {
color: $link-color; color: $link-color;
font-weight: bold;
.icon-view, .icon-view,
.icon-home { .icon-home {
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<a href="${reverse('wiki:get', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"> <a href="${reverse('wiki:get', kwargs={'article_id' : article.id, 'path' : urlpath.path})}">
<span class="icon-home icon"></span> <span class="icon-home icon"></span>
View View
${_("{span_start}active{span_end}").format(span_start="<span class='sr'>(", span_end=")</span>") if selected_tab == "view" else ""}
</a> </a>
</li> </li>
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
<a href="${reverse('wiki:edit', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"> <a href="${reverse('wiki:edit', kwargs={'article_id' : article.id, 'path' : urlpath.path})}">
<span class="icon-edit icon"></span> <span class="icon-edit icon"></span>
Edit Edit
${_("{span_start}active{span_end}").format(span_start="<span class='sr'>(", span_end=")</span>") if selected_tab == "edit" else ""}
</a> </a>
</li> </li>
%endif %endif
...@@ -25,6 +27,7 @@ ...@@ -25,6 +27,7 @@
<a href="${reverse('wiki:history', kwargs={'article_id' : article.id, 'path' : urlpath.path})}"> <a href="${reverse('wiki:history', kwargs={'article_id' : article.id, 'path' : urlpath.path})}">
<span class="icon-changes icon"></span> <span class="icon-changes icon"></span>
Changes Changes
${_("{span_start}active{span_end}").format(span_start="<span class='sr'>(", span_end=")</span>") if selected_tab == "history" else ""}
</a> </a>
</li> </li>
...@@ -34,6 +37,7 @@ ...@@ -34,6 +37,7 @@
<a href="${reverse('wiki:plugin', kwargs={'slug' : plugin.slug, 'article_id' : article.id, 'path' : urlpath.path}) }"> <a href="${reverse('wiki:plugin', kwargs={'slug' : plugin.slug, 'article_id' : article.id, 'path' : urlpath.path}) }">
<span class="${plugin.article_tab[1]} icon"></span> <span class="${plugin.article_tab[1]} icon"></span>
${plugin.article_tab[0]} ${plugin.article_tab[0]}
${_("{span_start}active{span_end}").format(span_start="<span class='sr'>(", span_end=")</span>") if selected_tab == plugin.slug else ""}
</a> </a>
</li> </li>
%endif %endif
...@@ -49,6 +53,7 @@ ${_("This should be enabled for all non-anonymous users once the notifications a ...@@ -49,6 +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})}"> <a href="${reverse('wiki:settings', kwargs={'article_id' : article.id, 'path' : urlpath.path})}">
<span class="icon-settings icon"></span> <span class="icon-settings icon"></span>
${_("Settings")} ${_("Settings")}
${_("{span_start}active{span_end}").format(span_start="<span class='sr'>(", span_end=")</span>") if selected_tab == "settings" else ""}
</a> </a>
</li> </li>
%endif %endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment