mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Make all tables responsive
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
fef8da230f
commit
83dcafac55
28 files changed
+1085
-1026
No files matched your search
@@ -11,18 +11,20 @@
|
||||
|
||||
<p>{% trans "Delete this archive permanently?" %}</p>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<th>{% trans "Name" %}</th>
|
||||
<th>{% trans "Time" %}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ archive.name }}</td>
|
||||
<td>{{ archive.time }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<th>{% trans "Name" %}</th>
|
||||
<th>{% trans "Time" %}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ archive.name }}</td>
|
||||
<td>{{ archive.time }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<form class="form" method="post">
|
||||
|
||||
@@ -4,106 +4,108 @@
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
<table class="table" id="archives-list">
|
||||
<thead class="collapsible-button" data-toggle="collapse" data-target="#{{ uuid }}">
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<span class="fa fa-chevron-right fa-fw" aria-hidden="true"></span>
|
||||
{% if repository.error %}
|
||||
<span class="fa fa-exclamation-triangle mount-error"
|
||||
aria-hidden="true" title="{{ repository.error }}">
|
||||
</span>
|
||||
{% elif repository.is_encrypted %}
|
||||
<span class="fa fa-lock encrypted"
|
||||
aria-hidden="true" title="{% trans "This repository is encrypted" %}">
|
||||
</span>
|
||||
{% endif %}
|
||||
<div class="table-responsive">
|
||||
<table class="table" id="archives-list">
|
||||
<thead class="collapsible-button" data-toggle="collapse" data-target="#{{ uuid }}">
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<span class="fa fa-chevron-right fa-fw" aria-hidden="true"></span>
|
||||
{% if repository.error %}
|
||||
<span class="fa fa-exclamation-triangle mount-error"
|
||||
aria-hidden="true" title="{{ repository.error }}">
|
||||
</span>
|
||||
{% elif repository.is_encrypted %}
|
||||
<span class="fa fa-lock encrypted"
|
||||
aria-hidden="true" title="{% trans "This repository is encrypted" %}">
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
{{ repository.name }}
|
||||
{{ repository.name }}
|
||||
|
||||
<span class="pull-right">
|
||||
{% if repository.flags.mountable %}
|
||||
<span class="pull-right">
|
||||
{% if repository.flags.mountable %}
|
||||
|
||||
{% if repository.mounted %}
|
||||
{% if repository.mounted %}
|
||||
|
||||
<form action="{% url 'backups:repository-umount' uuid %}" method="POST"
|
||||
class="inline-block" >
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-sm btn-default"
|
||||
title="{% trans 'Unmount Location' %}">
|
||||
<span class="fa fa-eject" aria-hidden="true"></span>
|
||||
</button>
|
||||
</form>
|
||||
<form action="{% url 'backups:repository-umount' uuid %}" method="POST"
|
||||
class="inline-block" >
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-sm btn-default"
|
||||
title="{% trans 'Unmount Location' %}">
|
||||
<span class="fa fa-eject" aria-hidden="true"></span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% else %}
|
||||
{% else %}
|
||||
|
||||
<form action="{% url 'backups:repository-mount' uuid %}" method="POST"
|
||||
class="inline-block" >
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-sm btn-default"
|
||||
title="{% trans 'Mount Location' %}">
|
||||
<span class="fa fa-eye" aria-hidden="true"></span>
|
||||
</button>
|
||||
</form>
|
||||
<form action="{% url 'backups:repository-mount' uuid %}" method="POST"
|
||||
class="inline-block" >
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-sm btn-default"
|
||||
title="{% trans 'Mount Location' %}">
|
||||
<span class="fa fa-eye" aria-hidden="true"></span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
{% if repository.flags.removable %}
|
||||
|
||||
{% if repository.flags.removable %}
|
||||
<a title="{% trans 'Remove Backup Location. This will not delete the remote backup.' %}"
|
||||
role="button" class="repository-remove btn btn-sm btn-default"
|
||||
href="{% url 'backups:repository-remove' uuid %}">
|
||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
||||
</a>
|
||||
|
||||
<a title="{% trans 'Remove Backup Location. This will not delete the remote backup.' %}"
|
||||
role="button" class="repository-remove btn btn-sm btn-default"
|
||||
href="{% url 'backups:repository-remove' uuid %}">
|
||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% endif %}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="collapse show" id="{{ uuid }}">
|
||||
{% if repository.mounted %}
|
||||
|
||||
<tbody class="collapse show" id="{{ uuid }}">
|
||||
{% if repository.mounted %}
|
||||
{% for archive in repository.archives %}
|
||||
<tr id="archive-{{ archive.name }}" class="archive">
|
||||
<td class="archive-name">{{ archive.name }}</td>
|
||||
<td class="archive-operations">
|
||||
<a class="archive-export btn btn-sm btn-default" target="_blank"
|
||||
href="{% url 'backups:download' uuid archive.name %}">
|
||||
{% trans "Download" %}
|
||||
</a>
|
||||
<a class="archive-export btn btn-sm btn-default"
|
||||
href="{% url 'backups:restore-archive' uuid archive.name %}">
|
||||
{% trans "Restore" %}
|
||||
</a>
|
||||
<a class="archive-delete btn btn-sm btn-default"
|
||||
href="{% url 'backups:delete' uuid archive.name %}">
|
||||
<span class="fa fa-trash-o" aria-hidden="true">
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
{% for archive in repository.archives %}
|
||||
<tr id="archive-{{ archive.name }}" class="archive">
|
||||
<td class="archive-name">{{ archive.name }}</td>
|
||||
<td class="archive-operations">
|
||||
<a class="archive-export btn btn-sm btn-default" target="_blank"
|
||||
href="{% url 'backups:download' uuid archive.name %}">
|
||||
{% trans "Download" %}
|
||||
</a>
|
||||
<a class="archive-export btn btn-sm btn-default"
|
||||
href="{% url 'backups:restore-archive' uuid archive.name %}">
|
||||
{% trans "Restore" %}
|
||||
</a>
|
||||
<a class="archive-delete btn btn-sm btn-default"
|
||||
href="{% url 'backups:delete' uuid archive.name %}">
|
||||
<span class="fa fa-trash-o" aria-hidden="true">
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% if repository.error %}
|
||||
<tr>
|
||||
<td>
|
||||
<p>{{ repository.error }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% if not repository.error and not repository.archives %}
|
||||
<tr>
|
||||
<td>
|
||||
<p>{% trans 'No archives currently exist.' %}</p>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% if repository.error %}
|
||||
<tr>
|
||||
<td>
|
||||
<p>{{ repository.error }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% if not repository.error and not repository.archives %}
|
||||
<tr>
|
||||
<td>
|
||||
<p>{% trans 'No archives currently exist.' %}</p>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in new issue
Block a user