Skip to content

Commit

Permalink
Restructure nav auth menu blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil committed Oct 8, 2016
1 parent 82c3004 commit 43beca6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wafer/templates/wafer/nav.html
Expand Up @@ -51,6 +51,7 @@
{% block navauthmenu %}
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
{% block navauthenticated %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{{ user.username }}<b class="caret"></b>
Expand All @@ -71,12 +72,13 @@
{% endif %}
</ul>
</li>
{% block navhidelogin %}
{% endblock navauthenticated %}
{% elif not WAFER_HIDE_LOGIN %}
{% block navnotauth %}
<li><a href="{% url 'auth_login' %}">
{% trans 'Sign up / Log In' %}
</a></li>
{% endblock navhidelogin %}
{% endblock navnotauth %}
{% endif %}
</ul>
{% endblock navauthmenu %}
Expand Down

0 comments on commit 43beca6

Please sign in to comment.