mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
toolbar: Move diagnostics button into dropdown menu
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
52f6da2a41
commit
6a4a941bb6
@ -81,7 +81,16 @@
|
|||||||
|
|
||||||
{% block diagnostics %}
|
{% block diagnostics %}
|
||||||
{% if diagnostics_module_name %}
|
{% if diagnostics_module_name %}
|
||||||
{% include "diagnostics_button.html" with module=diagnostics_module_name enabled=is_enabled %}
|
<!-- Single button -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
<span class="glyphicon glyphicon glyphicon-cog" aria-hidden="true"></span> <span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<div class="dropdown-menu">
|
||||||
|
{% include "diagnostics_button.html" with module=diagnostics_module_name enabled=is_enabled %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@ -142,7 +142,13 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-diagnostics-button {
|
.form-diagnostics-button {
|
||||||
display: inline-block;
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-diagnostics-button .btn {
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 0;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide log out button if user dropdown is available */
|
/* Hide log out button if user dropdown is available */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user