Skip to content

Commit

Permalink
Merge pull request #546 from benjaoming/account-handling-disabled
Browse files Browse the repository at this point in the history
Do not display account-related links in menu when WIKI_ACCOUNT_HANDLING=False
  • Loading branch information
benjaoming committed May 10, 2016
2 parents 6aecc8a + da080ed commit b4b674c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions wiki/templates/wiki/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="{% url 'wiki:logout' %}">
<i class="fa fa-power-off"></i>
{% trans "Log out" %}
</a>
</li>
{% if "ACCOUNT_HANDLING"|wiki_settings %}
<li>
<a href="{% url 'wiki:profile_update' %}">
<i class="fa fa-gear"></i>
{% trans "Account Settings" %}
</a>
</li>
<li>
<a href="{% url 'wiki:logout' %}">
<i class="fa fa-power-off"></i>
{% trans "Log out" %}
</a>
</li>
{% endif %}
{% if user.is_superuser %}
<li>
Expand All @@ -92,9 +92,11 @@
<li>
<a href="{% login_url as wiki_login_url %}{{ wiki_login_url }}">{% trans "Log in" %}</a>
</li>
{% if "ACCOUNT_HANDLING"|wiki_settings %}
<li>
<a href="{% url 'wiki:signup' %}">{% trans "Sign up" %}</a>
</li>
{% endif %}
</ul>
{% endif %}
</div>
Expand Down

0 comments on commit b4b674c

Please sign in to comment.