mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
backups: Fix HTML template indentation, remove inline styling
Remove inline styling as it won't work with upcoming content security rules. They should be re-added in CSS files. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
c64fea7746
commit
229843cd1e
@ -24,8 +24,7 @@
|
|||||||
<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">
|
||||||
<span style="vertical-align: text-top">
|
<span class="fa fa-chevron-right fa-fw" aria-hidden="true"></span>
|
||||||
<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 }}">
|
||||||
@ -35,44 +34,42 @@
|
|||||||
{{ repository.name }}
|
{{ repository.name }}
|
||||||
|
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
{% if editable %}
|
{% if editable %}
|
||||||
|
|
||||||
{% if repository.mounted %}
|
{% if repository.mounted %}
|
||||||
|
|
||||||
<!-- With GET redirects, the browser URL points to the
|
<!-- With GET redirects, the browser URL points to the
|
||||||
redirected page (bad when reloading) - use POST instead.
|
redirected page (bad when reloading) - use POST instead.
|
||||||
-->
|
-->
|
||||||
<form action="{% url 'backups:repository-umount' uuid %}" method="POST"
|
<form action="{% url 'backups:repository-umount' uuid %}" method="POST"
|
||||||
class="inline-block" >
|
class="inline-block" >
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit" class="btn btn-sm btn-default"
|
<button type="submit" class="btn btn-sm btn-default"
|
||||||
title="{% trans 'Unmount Location' %}">
|
title="{% trans 'Unmount Location' %}">
|
||||||
<span class="fa fa-eject" aria-hidden="true">
|
<span class="fa fa-eject" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
<form action="{% url 'backups:repository-mount' uuid %}" method="POST"
|
<form action="{% url 'backups:repository-mount' uuid %}" method="POST"
|
||||||
class="inline-block" >
|
class="inline-block" >
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit" class="btn btn-sm btn-default"
|
<button type="submit" class="btn btn-sm btn-default"
|
||||||
title="{% trans 'Mount Location' %}">
|
title="{% trans 'Mount Location' %}">
|
||||||
<span class="fa fa-eye" aria-hidden="true">
|
<span class="fa fa-eye" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<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 %}
|
{% endif %}
|
||||||
|
|
||||||
<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">
|
|
||||||
</a>
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user