Skip to content

Commit

Permalink
When a user is logged out, show the login nav.
Browse files Browse the repository at this point in the history
And not the user drop-down menu.
  • Loading branch information
ryugi committed May 23, 2017
1 parent a395fab commit d43c53d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
</ul>

<ul class="nav navbar-nav navbar-right">
{% if identity|empty? %}
<li><a href="/">Login</a></li>
{% else %}
<li class="dropdown">
<a href="#"
class="dropdown-toggle"
Expand All @@ -30,7 +33,7 @@
<li><a href="/logout">Logout</a></li>
</ul>
</li>
<li><a href="#"></a></li>
{% endif %}
</ul>

</div>
Expand Down

0 comments on commit d43c53d

Please sign in to comment.