mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
ui: Hide restart/shutdown items when navbar is collapsed
- Keep unimportant items hidden on small screens. - Remove dividers that cause confusion. - Avoid a scrollbar inside the menu when user menu is expanded. Bootstrap intended to show exactly 8 menu items. Fixes #1431. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
d767e64703
commit
4c65d34741
@ -170,21 +170,21 @@
|
|||||||
{% trans "Change password" %}
|
{% trans "Change password" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider"></li>
|
<li class="divider hidden-xs"></li>
|
||||||
{% if user_is_admin %}
|
{% if user_is_admin %}
|
||||||
<li>
|
<li class="hidden-xs">
|
||||||
<a href="{% url 'power:restart' %}"
|
<a href="{% url 'power:restart' %}"
|
||||||
title="{% trans "Restart"%}">
|
title="{% trans "Restart"%}">
|
||||||
{% trans "Restart" %}
|
{% trans "Restart" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li class="hidden-xs">
|
||||||
<a href="{% url 'power:shutdown' %}"
|
<a href="{% url 'power:shutdown' %}"
|
||||||
title="{% trans "Shut down" %}">
|
title="{% trans "Shut down" %}">
|
||||||
{% trans "Shut down" %}
|
{% trans "Shut down" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider"></li>
|
<li class="divider hidden-xs"></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'users:logout' %}"
|
<a href="{% url 'users:logout' %}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user