mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
backups: Make backup location tables collapsible
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> [sunil@medhas.org Fix incorrectly removed <tr> tag in <thead>] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
c2cb187d91
commit
faac8cdd9c
@ -21,10 +21,11 @@
|
|||||||
|
|
||||||
<table class="table table-bordered table-condensed table-striped"
|
<table class="table table-bordered table-condensed table-striped"
|
||||||
id="archives-list">
|
id="archives-list">
|
||||||
<thead>
|
<thead class="collapsible-button" data-toggle="collapse" data-target="#{{ uuid }}">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">
|
<th colspan="2">
|
||||||
<span style="vertical-align: text-top">
|
<span style="vertical-align: text-top">
|
||||||
|
<span class="fa fa-chevron-right fa-fw" aria-hidden="true"></span>
|
||||||
{% if repository.error %}
|
{% if repository.error %}
|
||||||
<span class="fa fa-exclamation-triangle mount-error"
|
<span class="fa fa-exclamation-triangle mount-error"
|
||||||
aria-hidden="true" title="{{ repository.error }}">
|
aria-hidden="true" title="{{ repository.error }}">
|
||||||
@ -63,7 +64,7 @@
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a title="{% trans 'Remove Location. This will not delete the remote backup.' %}"
|
<a title="{% trans 'Remove Backup Location. This will not delete the remote backup.' %}"
|
||||||
role="button" class="repository-remove btn btn-sm btn-default"
|
role="button" class="repository-remove btn btn-sm btn-default"
|
||||||
href="{% url 'backups:repository-remove' uuid %}">
|
href="{% url 'backups:repository-remove' uuid %}">
|
||||||
<span class="fa fa-trash-o" aria-hidden="true">
|
<span class="fa fa-trash-o" aria-hidden="true">
|
||||||
@ -77,7 +78,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody class="collapse in" id="{{ uuid }}">
|
||||||
{% if repository.mounted %}
|
{% if repository.mounted %}
|
||||||
|
|
||||||
{% for archive in repository.archives %}
|
{% for archive in repository.archives %}
|
||||||
|
|||||||
@ -235,12 +235,12 @@ footer {
|
|||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collapsible-button .fa:before,
|
.collapsible-button .fa-chevron-right:before,
|
||||||
.no-js .collapsible-button.collapsed .fa:before {
|
.no-js .collapsible-button.collapsed .fa-chevron-right:before {
|
||||||
content: "\f078";
|
content: "\f078";
|
||||||
}
|
}
|
||||||
|
|
||||||
.collapsible-button.collapsed .fa:before {
|
.collapsible-button.collapsed .fa-chevron-right:before {
|
||||||
content: "\f054";
|
content: "\f054";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user