ui: Consistently use the btn-toolbar class for all toolbars

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-12-16 14:35:07 -08:00 committed by Veiko Aasa
parent 1e7ef0b3e4
commit 9c6ca18045
No known key found for this signature in database
GPG Key ID: 478539CAE680674E
13 changed files with 72 additions and 68 deletions

View File

@ -27,33 +27,35 @@
{% block configuration %} {% block configuration %}
<a title="{% trans 'Create a new backup' %}" <div class="btn-toolbar">
role="button" class="btn btn-primary" <a title="{% trans 'Create a new backup' %}"
href="{% url 'backups:create' %}"> role="button" class="btn btn-primary"
<span class="fa fa-plus" aria-hidden="true"></span> href="{% url 'backups:create' %}">
{% trans 'Create Backup' %} <span class="fa fa-plus" aria-hidden="true"></span>
</a> {% trans 'Create Backup' %}
</a>
<a title="{% trans 'Upload and restore a backup archive' %}" <a title="{% trans 'Upload and restore a backup archive' %}"
role="button" class="btn btn-default" role="button" class="btn btn-default"
href="{% url 'backups:upload' %}"> href="{% url 'backups:upload' %}">
<span class="fa fa-upload" aria-hidden="true"></span> <span class="fa fa-upload" aria-hidden="true"></span>
{% trans 'Upload and Restore' %} {% trans 'Upload and Restore' %}
</a> </a>
<a title="{% trans 'Add a backup location' %}" <a title="{% trans 'Add a backup location' %}"
role="button" class="btn btn-default" role="button" class="btn btn-default"
href="{% url 'backups:add-repository' %}"> href="{% url 'backups:add-repository' %}">
<span class="fa fa-plus" aria-hidden="true"></span> <span class="fa fa-plus" aria-hidden="true"></span>
{% trans 'Add Backup Location' %} {% trans 'Add Backup Location' %}
</a> </a>
<a title="{% trans 'Add a remote backup location' %}" <a title="{% trans 'Add a remote backup location' %}"
role="button" class="btn btn-default" role="button" class="btn btn-default"
href="{% url 'backups:add-remote-repository' %}"> href="{% url 'backups:add-remote-repository' %}">
<span class="fa fa-plus" aria-hidden="true"></span> <span class="fa fa-plus" aria-hidden="true"></span>
{% trans 'Add Remote Backup Location' %} {% trans 'Add Remote Backup Location' %}
</a> </a>
</div>
<h3>{% trans 'Existing Backups' %}</h3> <h3>{% trans 'Existing Backups' %}</h3>

View File

@ -32,11 +32,11 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<div> <div class="btn-toolbar">
<a href="{% url 'bind:index' %}" class="btn btn-default" <a href="{% url 'bind:index' %}" class="btn btn-default"
role="button" title="{% trans 'Refresh IP address and domains' %}"> role="button" title="{% trans 'Refresh IP address and domains' %}">
<span class="fa" aria-hidden="true"></span> <span class="fa" aria-hidden="true"></span>
{% trans 'Refresh IP address and domains' %} {% trans 'Refresh IP address and domains' %}
</a> </a>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -22,7 +22,7 @@
<div class="row"> <div class="row">
<div class="col-md-8 offset-md-2"> <div class="col-md-8 offset-md-2">
<div> <div class="btn-toolbar">
<a href="{% url 'networks:edit' connection.uuid %}" <a href="{% url 'networks:edit' connection.uuid %}"
class="btn btn-primary" role="button" class="btn btn-primary" role="button"
title="{% trans "Edit connection" %}">{% trans "Edit" %}</a> title="{% trans "Edit connection" %}">{% trans "Edit" %}</a>

View File

@ -24,13 +24,13 @@
<h3>{% trans "Custom Services" %}</h3> <h3>{% trans "Custom Services" %}</h3>
<p> <div class="btn-toolbar">
<a href="{% url 'pagekite:add-custom-service' %}" class="btn btn-default" <a href="{% url 'pagekite:add-custom-service' %}" class="btn btn-default"
role="button" title="{% trans 'Add Custom Service' %}"> role="button" title="{% trans 'Add Custom Service' %}">
<span class="fa fa-plus" aria-hidden="true"></span> <span class="fa fa-plus" aria-hidden="true"></span>
{% trans 'Add Custom Service' %} {% trans 'Add Custom Service' %}
</a> </a>
</p> </div>
{% if custom_services %} {% if custom_services %}
<div class="list-group custom-services"> <div class="list-group custom-services">

View File

@ -17,12 +17,12 @@
</div> </div>
{% endif %} {% endif %}
<p> <div class="btn-toolbar">
<a class="btn btn-default btn-md" href="{% url 'power:restart' %}"> <a class="btn btn-default btn-md" href="{% url 'power:restart' %}">
{% trans "Restart &raquo;" %}</a> {% trans "Restart &raquo;" %}</a>
<a class="btn btn-default btn-md" href="{% url 'power:shutdown' %}"> <a class="btn btn-default btn-md" href="{% url 'power:shutdown' %}">
{% trans "Shut Down &raquo;" %}</a> {% trans "Shut Down &raquo;" %}</a>
</p> </div>
{% endblock %} {% endblock %}

View File

@ -7,11 +7,13 @@
{% load i18n %} {% load i18n %}
{% block status %} {% block status %}
<a class="btn btn-default" role="button" href="{% url 'security:report' %}" <div class="btn-toolbar">
title="{% trans 'Show security report' %}"> <a class="btn btn-default" role="button" href="{% url 'security:report' %}"
<span class="fa fa-line-chart" aria-hidden="true"></span> title="{% trans 'Show security report' %}">
{% trans "Show security report" %} <span class="fa fa-line-chart" aria-hidden="true"></span>
</a> {% trans "Show security report" %}
</a>
</div>
{% if is_backports_requested %} {% if is_backports_requested %}
<h3>{% trans "Frequent Feature Updates" %}</h3> <h3>{% trans "Frequent Feature Updates" %}</h3>

View File

@ -20,13 +20,13 @@
{% include "app-header.html" with icon_filename=icon_filename name=title description=description %} {% include "app-header.html" with icon_filename=icon_filename name=title description=description %}
<p> <div class="btn-toolbar">
<a title="{% trans 'Add share' %}" <a title="{% trans 'Add share' %}"
role="button" class="btn btn-primary" role="button" class="btn btn-primary"
href="{% url 'sharing:add' %}"> href="{% url 'sharing:add' %}">
{% trans 'Add share' %} {% trans 'Add share' %}
</a> </a>
</p> </div>
{% if not shares %} {% if not shares %}
<p>{% trans 'No shares currently configured.' %}</p> <p>{% trans 'No shares currently configured.' %}</p>

View File

@ -108,21 +108,21 @@
<h3>{% trans "Manual Update" %}</h3> <h3>{% trans "Manual Update" %}</h3>
{% if is_busy %} {% if is_busy %}
<p> <div class="btn-toolbar">
<button type="button" disabled="disabled" <button type="button" disabled="disabled"
class="running-status-parent btn btn-default" > class="running-status-parent btn btn-default" >
<span class="running-status loading"></span> <span class="running-status loading"></span>
{% trans "Updating..." %} {% trans "Updating..." %}
</button> </button>
</p> </div>
{% else %} {% else %}
<p> <div class="btn-toolbar">
<form class="form" method="post" action="{% url 'upgrades:upgrade' %}"> <form class="form" method="post" action="{% url 'upgrades:upgrade' %}">
{% csrf_token %} {% csrf_token %}
<input type="submit" class="btn btn-default" <input type="submit" class="btn btn-default"
value="{% trans "Update now" %}"/> value="{% trans "Update now" %}"/>
</form> </form>
</p> </div>
{% endif %} {% endif %}
<p> <p>

View File

@ -55,12 +55,14 @@
{% endif %} {% endif %}
</p> </p>
<a title="{% trans 'Add a new peer' %}" <div class="btn-toolbar">
role="button" class="btn btn-default" <a title="{% trans 'Add a new peer' %}"
href="{% url 'wireguard:add-client' %}"> role="button" class="btn btn-default"
<span class="fa fa-plus" aria-hidden="true"></span> href="{% url 'wireguard:add-client' %}">
{% trans "Add Allowed Client" %} <span class="fa fa-plus" aria-hidden="true"></span>
</a> {% trans "Add Allowed Client" %}
</a>
</div>
<h3>{% trans "As a Client" %}</h3> <h3>{% trans "As a Client" %}</h3>
<p> <p>
@ -103,12 +105,14 @@
</table> </table>
</div> </div>
<a title="{% trans 'Add a new server' %}" <div class="btn-toolbar">
role="button" class="btn btn-default" <a title="{% trans 'Add a new server' %}"
href="{% url 'wireguard:add-server' %}"> role="button" class="btn btn-default"
<span class="fa fa-plus" aria-hidden="true"></span> href="{% url 'wireguard:add-server' %}">
{% trans "Add Connection to Server" %} <span class="fa fa-plus" aria-hidden="true"></span>
</a> {% trans "Add Connection to Server" %}
</a>
</div>
{{ block.super }} {{ block.super }}

View File

@ -65,7 +65,7 @@
</table> </table>
</div> </div>
<p> <div class="btn-toolbar">
<a class="btn btn-default" <a class="btn btn-default"
href="{% url 'wireguard:edit-client' client.public_key|urlencode:'' %}"> href="{% url 'wireguard:edit-client' client.public_key|urlencode:'' %}">
<span class="fa fa-pencil-square-o" aria-hidden="true"></span> <span class="fa fa-pencil-square-o" aria-hidden="true"></span>
@ -76,6 +76,6 @@
<span class="fa fa-trash-o" aria-hidden="true"></span> <span class="fa fa-trash-o" aria-hidden="true"></span>
{% trans "Delete" %} {% trans "Delete" %}
</a> </a>
</p> </div>
{% endblock %} {% endblock %}

View File

@ -66,7 +66,7 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<p> <div class="btn-toolbar">
<a class="btn btn-default" <a class="btn btn-default"
href="{% url 'wireguard:edit-server' interface %}"> href="{% url 'wireguard:edit-server' interface %}">
<span class="fa fa-pencil-square-o" aria-hidden="true"></span> <span class="fa fa-pencil-square-o" aria-hidden="true"></span>
@ -77,6 +77,6 @@
<span class="fa fa-trash-o" aria-hidden="true"></span> <span class="fa fa-trash-o" aria-hidden="true"></span>
{% trans "Delete" %} {% trans "Delete" %}
</a> </a>
</p> </div>
{% endblock %} {% endblock %}

View File

@ -36,7 +36,7 @@
{% endif %} {% endif %}
{% if note.actions %} {% if note.actions %}
<p> <div class="btn-toolbar">
{% for action in note.actions %} {% for action in note.actions %}
{% if action.type == "dismiss" %} {% if action.type == "dismiss" %}
<a href="{% url 'notification_dismiss' id=note.id %}?next={{ request.path|iriencode }}" <a href="{% url 'notification_dismiss' id=note.id %}?next={{ request.path|iriencode }}"
@ -50,7 +50,7 @@
</a> </a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</p> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}
</li> </li>

View File

@ -510,10 +510,6 @@ a.menu_link_active {
} }
/* Button table - Tables with a list of actions as buttons on top */ /* Button table - Tables with a list of actions as buttons on top */
.button-table > .button-row + .table-responsive {
margin-top: 0.625rem;
}
.index-page .card-list:before, .index-page .card-list:before,
.apps-page .card-list:before, .apps-page .card-list:before,
.system-page .card-list:before { .system-page .card-list:before {