navbar: moved logout to user drop-down and added a new power drop-down

This commit is contained in:
Johannes Keyser 2017-06-05 18:02:34 +02:00 committed by James Valleroy
parent 44f3150b1b
commit 217995a237
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -132,19 +132,50 @@
role="button" aria-expanded="false"> role="button" aria-expanded="false">
<i class="glyphicon glyphicon-user nav-icon"></i> <i class="glyphicon glyphicon-user nav-icon"></i>
{{ user.username }} {{ user.username }}
<span class="caret"></span></a> <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
<li><a href="{% url 'users:edit' user.username %}" <li>
title="{% trans "Edit"%}">{% trans "Edit" %}</a></li> <a href="{% url 'users:edit' user.username %}"
<li><a href="{% url 'users:change_password' user.username %}" title="{% trans "Edit"%}">
title="{% trans "Change password" %}"> {% trans "Edit" %}
{% trans "Change password" %}</a></li> </a>
</li>
<li>
<a href="{% url 'users:change_password' user.username %}"
title="{% trans "Change password" %}">
{% trans "Change password" %}
</a>
</li>
<li>
<a href="{% url 'users:logout' %}"
title="{% trans "Log out" %}">
{% trans "Log out" %}
</a>
</li>
</ul> </ul>
</li> </li>
<li> <li class="dropdown">
<a href="{% url 'users:logout' %}" title="{% trans "Log out" %}"> <a href="{% url 'power:index' %}"
<span class="glyphicon glyphicon-off nav-icon"></span> class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-expanded="false">
<i class="glyphicon glyphicon-off nav-icon"></i>
<span class="caret"></span>
</a> </a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="{% url 'power:restart' %}"
title="{% trans "Restart"%}">
{% trans "Restart" %}
</a>
</li>
<li>
<a href="{% url 'power:shutdown' %}"
title="{% trans "Shut down" %}">
{% trans "Shut down" %}
</a>
</li>
</ul>
</li> </li>
{% else %} {% else %}
<li> <li>