mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
power: Merge power merge into the user dropdown
Closes #1074. Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
511c957ece
commit
3b3dafe893
@ -147,6 +147,22 @@
|
||||
{% trans "Change password" %}
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
{% if user_is_admin %}
|
||||
<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>
|
||||
<li class="divider"></li>
|
||||
{% endif %}
|
||||
<li>
|
||||
<a href="{% url 'users:logout' %}"
|
||||
title="{% trans "Log out" %}">
|
||||
@ -155,28 +171,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="{% url 'power:index' %}"
|
||||
class="dropdown-toggle" data-toggle="dropdown"
|
||||
role="button" aria-expanded="false">
|
||||
<i class="glyphicon glyphicon-off nav-icon"></i>
|
||||
<span class="caret"></span>
|
||||
</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>
|
||||
{% else %}
|
||||
<li>
|
||||
<a href="{% url 'users:login' %}" title="{% trans "Log in" %}">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user