toolbar: Move diagnostics button into dropdown menu

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Alice Kile 2019-11-26 15:20:50 +05:30 committed by James Valleroy
parent 52f6da2a41
commit 6a4a941bb6
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 17 additions and 2 deletions

View File

@ -81,7 +81,16 @@
{% block diagnostics %}
{% 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 %}
{% endblock %}

View File

@ -142,7 +142,13 @@ body {
}
.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 */