mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
ui: Adopt a consistent and new table style
Rows in bootstrap 4 tables are taller by default. This is better suited for mobile layouts and look prettier on desktops too. Adopting this approach instead of condensed tables eliminates the need for striping, bordering and narrower tables. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
00bc55f762
commit
fef8da230f
@ -11,22 +11,18 @@
|
|||||||
|
|
||||||
<p>{% trans "Delete this archive permanently?" %}</p>
|
<p>{% trans "Delete this archive permanently?" %}</p>
|
||||||
|
|
||||||
<div class="row">
|
<table class="table">
|
||||||
<div class="col-xl-12">
|
<thead>
|
||||||
<table class="table table-bordered table-sm table-striped">
|
<th>{% trans "Name" %}</th>
|
||||||
<thead>
|
<th>{% trans "Time" %}</th>
|
||||||
<th>{% trans "Name" %}</th>
|
</thead>
|
||||||
<th>{% trans "Time" %}</th>
|
<tbody>
|
||||||
</thead>
|
<tr>
|
||||||
<tbody>
|
<td>{{ archive.name }}</td>
|
||||||
<tr>
|
<td>{{ archive.time }}</td>
|
||||||
<td>{{ archive.name }}</td>
|
</tr>
|
||||||
<td>{{ archive.time }}</td>
|
</tbody>
|
||||||
</tr>
|
</table>
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
|
|||||||
@ -4,8 +4,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<table class="table table-bordered table-condensed table-striped"
|
<table class="table" id="archives-list">
|
||||||
id="archives-list">
|
|
||||||
<thead class="collapsible-button" data-toggle="collapse" data-target="#{{ uuid }}">
|
<thead class="collapsible-button" data-toggle="collapse" data-target="#{{ uuid }}">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">
|
<th colspan="2">
|
||||||
|
|||||||
@ -22,8 +22,7 @@
|
|||||||
{% if not passwords %}
|
{% if not passwords %}
|
||||||
<p>{% trans 'No passwords currently configured.' %}</p>
|
<p>{% trans 'No passwords currently configured.' %}</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<table class="table table-bordered table-condensed table-striped"
|
<table class="table" id="passwords-list">
|
||||||
id="passwords-list">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Password" %}</th>
|
<th>{% trans "Password" %}</th>
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<h3>{% trans "Serving Domains" %}</h3>
|
<h3>{% trans "Serving Domains" %}</h3>
|
||||||
|
|
||||||
<table class="table table-bordered table-condensed table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Type" %}</th>
|
<th>{% trans "Type" %}</th>
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<table class="table table-bordered table-striped diagnostics-results">
|
<table class="table diagnostics-results">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="diagnostic-test">{% trans "Test" %}</th>
|
<th class="diagnostic-test">{% trans "Test" %}</th>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<h3>{% trans "Status" %}</h3>
|
<h3>{% trans "Status" %}</h3>
|
||||||
|
|
||||||
{% if status.domains %}
|
{% if status.domains %}
|
||||||
<table class="table table-bordered table-sm table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Domain" %}</th>
|
<th>{% trans "Domain" %}</th>
|
||||||
|
|||||||
@ -10,27 +10,23 @@
|
|||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
{% if domains %}
|
{% if domains %}
|
||||||
<div class="row">
|
<table class="table">
|
||||||
<div class="col-md-6">
|
<thead>
|
||||||
<table class="table table-bordered table-sm table-striped">
|
<tr>
|
||||||
<thead>
|
<th>{% trans "Address" %}</th>
|
||||||
<tr>
|
<th>{% trans "Port" %}</th>
|
||||||
<th>{% trans "Address" %}</th>
|
</tr>
|
||||||
<th>{% trans "Port" %}</th>
|
</thead>
|
||||||
</tr>
|
<tbody>
|
||||||
</thead>
|
{% for domain in domains %}
|
||||||
<tbody>
|
<tr>
|
||||||
{% for domain in domains %}
|
<td>
|
||||||
<tr>
|
{{ domain }}
|
||||||
<td>
|
</td>
|
||||||
{{ domain }}
|
<td>{{ 30000 }}</td>
|
||||||
</td>
|
</tr>
|
||||||
<td>{{ 30000 }}</td>
|
{% endfor %}
|
||||||
</tr>
|
</tbody>
|
||||||
{% endfor %}
|
</table>
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<table class="table table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Service" %}</th>
|
<th>{% trans "Service" %}</th>
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<h2>{% trans "Monkeysphere" %}</h2>
|
<h2>{% trans "Monkeysphere" %}</h2>
|
||||||
|
|
||||||
<table class="table table-bordered table-sm table-striped">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "OpenPGP Fingerprint" %}</td>
|
<td>{% trans "OpenPGP Fingerprint" %}</td>
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
|
|
||||||
<table class="table table-bordered table-sm table-striped names-table">
|
<table class="table names-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Type" %}</th>
|
<th>{% trans "Type" %}</th>
|
||||||
|
|||||||
@ -69,7 +69,7 @@
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="filesystem_type"
|
<input type="hidden" name="filesystem_type"
|
||||||
value="{{ disk.filesystem_type }}">
|
value="{{ disk.filesystem_type }}">
|
||||||
<table class="table table-condensed"
|
<table class="table"
|
||||||
aria-describedby="{{ disk.name }}">
|
aria-describedby="{{ disk.name }}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -143,7 +143,7 @@
|
|||||||
is plugged back in, sharing will be automatically enabled.
|
is plugged back in, sharing will be automatically enabled.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
<table class="table table-bordered table-condensed table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Share name" %}</th>
|
<th>{% trans "Share name" %}</th>
|
||||||
|
|||||||
@ -34,7 +34,7 @@
|
|||||||
running.
|
running.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
<table class="table table-bordered table-condensed table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "App Name" %}</th>
|
<th>{% trans "App Name" %}</th>
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
{% if not shares %}
|
{% if not shares %}
|
||||||
<p>{% trans 'No shares currently configured.' %}</p>
|
<p>{% trans 'No shares currently configured.' %}</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<table class="table table-bordered table-sm table-striped" id="shares-list">
|
<table class="table" id="shares-list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Name" %}</th>
|
<th>{% trans "Name" %}</th>
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<p>{% trans "Delete the following snapshots permanently?" %}</p>
|
<p>{% trans "Delete the following snapshots permanently?" %}</p>
|
||||||
|
|
||||||
<table class="table table-bordered table-sm table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<th>{% trans "Number" %}</th>
|
<th>{% trans "Number" %}</th>
|
||||||
<th>{% trans "Date" %}</th>
|
<th>{% trans "Date" %}</th>
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
{{ has_deletable_snapshots|yesno:',disabled="disabled"' }}/>
|
{{ has_deletable_snapshots|yesno:',disabled="disabled"' }}/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table table-bordered table-sm table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<th>{% trans "Number" %}</th>
|
<th>{% trans "Number" %}</th>
|
||||||
<th>{% trans "Date" %}</th>
|
<th>{% trans "Date" %}</th>
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="table table-bordered table-sm table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<th>{% trans "Number" %}</th>
|
<th>{% trans "Number" %}</th>
|
||||||
<th>{% trans "Date" %}</th>
|
<th>{% trans "Date" %}</th>
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="table table-bordered table-condensed table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Algorithm" %}</th>
|
<th>{% trans "Algorithm" %}</th>
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<p>{% trans "The following storage devices are in use:" %}</p>
|
<p>{% trans "The following storage devices are in use:" %}</p>
|
||||||
|
|
||||||
<table class="table table-bordered table-sm table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Device" %}</th>
|
<th>{% trans "Device" %}</th>
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
<h4>{% trans "Local introducer" %}</h4>
|
<h4>{% trans "Local introducer" %}</h4>
|
||||||
<table class="table table-bordered local-introducers">
|
<table class="table local-introducers">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Pet Name" %}</th>
|
<th>{% trans "Pet Name" %}</th>
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<h4>{% trans "Connected introducers" %}</h4>
|
<h4>{% trans "Connected introducers" %}</h4>
|
||||||
<table class="table table-bordered connected-introducers">
|
<table class="table connected-introducers">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Pet Name" %}</th>
|
<th>{% trans "Pet Name" %}</th>
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
{% if status.hs_enabled %}
|
{% if status.hs_enabled %}
|
||||||
<table class="table table-bordered table-sm table-striped tor-hs">
|
<table class="table tor-hs">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Onion Service" %}</th>
|
<th>{% trans "Onion Service" %}</th>
|
||||||
@ -64,7 +64,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<table class="table table-bordered table-sm table-striped tor-relay-ports">
|
<table class="table tor-relay-ports">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Service" %}</th>
|
<th>{% trans "Service" %}</th>
|
||||||
|
|||||||
@ -11,8 +11,7 @@
|
|||||||
|
|
||||||
<p>{% trans "Peers allowed to connect to this server:" %}</p>
|
<p>{% trans "Peers allowed to connect to this server:" %}</p>
|
||||||
|
|
||||||
<table class="table table-bordered table-condensed table-striped"
|
<table class="table" id="server-peers-list">
|
||||||
id="server-peers-list">
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Public Key" %}</th>
|
<th>{% trans "Public Key" %}</th>
|
||||||
<th>{% trans "Allowed IPs" %}</th>
|
<th>{% trans "Allowed IPs" %}</th>
|
||||||
@ -67,8 +66,7 @@
|
|||||||
Servers that {{ box_name }} will connect to:
|
Servers that {{ box_name }} will connect to:
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
<table class="table table-bordered table-condensed table-striped"
|
<table class="table" id="client-peers-list">
|
||||||
id="client-peers-list">
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Endpoint" %}</th>
|
<th>{% trans "Endpoint" %}</th>
|
||||||
<th>{% trans "Public Key" %}</th>
|
<th>{% trans "Public Key" %}</th>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<p>
|
<p>
|
||||||
{% trans "Are you sure that you want to delete this server?" %}
|
{% trans "Are you sure that you want to delete this server?" %}
|
||||||
</p>
|
</p>
|
||||||
<table class="table table-bordered table-condensed table striped">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Endpoint" %}</th>
|
<th>{% trans "Endpoint" %}</th>
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
client is configured with the following information.
|
client is configured with the following information.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
<table class="table table-bordered table-condensed table-striped">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Client public key:" %}</th>
|
<th>{% trans "Client public key:" %}</th>
|
||||||
@ -44,7 +44,7 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h3>{% trans "Status" %}</h3>
|
<h3>{% trans "Status" %}</h3>
|
||||||
<table class="table table-bordered table-condensed table-striped">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Data transmitted:" %}</th>
|
<th>{% trans "Data transmitted:" %}</th>
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
{{ box_name }}'s public key and IP address.
|
{{ box_name }}'s public key and IP address.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
<table class="table table-bordered table-condensed table-striped">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Server endpoint:" %}</th>
|
<th>{% trans "Server endpoint:" %}</th>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h3>{% trans "Status" %}</h3>
|
<h3>{% trans "Status" %}</h3>
|
||||||
<table class="table table-bordered table-condensed table-striped">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Data transmitted:" %}</th>
|
<th>{% trans "Data transmitted:" %}</th>
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
{% if clients %}
|
{% if clients %}
|
||||||
<div id="clients" class="collapse">
|
<div id="clients" class="collapse">
|
||||||
<table class="table table-striped">
|
<table class="table">
|
||||||
|
|
||||||
{% with clients|clients_of_type:'web' as web_clients %}
|
{% with clients|clients_of_type:'web' as web_clients %}
|
||||||
{% for client in web_clients %}
|
{% for client in web_clients %}
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
{{ service_name }}:
|
{{ service_name }}:
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
<table class="table table-condensed">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Protocol" %}</th>
|
<th>{% trans "Protocol" %}</th>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user