mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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" %}
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li class="divider hidden-xs"></li>
|
||||
{% if user_is_admin %}
|
||||
<li>
|
||||
<li class="hidden-xs">
|
||||
<a href="{% url 'power:restart' %}"
|
||||
title="{% trans "Restart"%}">
|
||||
{% trans "Restart" %}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li class="hidden-xs">
|
||||
<a href="{% url 'power:shutdown' %}"
|
||||
title="{% trans "Shut down" %}">
|
||||
{% trans "Shut down" %}
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li class="divider hidden-xs"></li>
|
||||
{% endif %}
|
||||
<li>
|
||||
<a href="{% url 'users:logout' %}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user