mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
navbar: moved logout to user drop-down and added a new power drop-down
This commit is contained in:
parent
44f3150b1b
commit
217995a237
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user