_disk-list-element.html 1 KB
Newer Older
1 2 3
{% load i18n %}
{% load sizefieldtags %}

4
<i class="fa fa-file"></i>
5
{{ d.name }} (#{{ d.id }}) - {{ d.size|filesize }}
6 7 8 9 10

{% if op.remove_disk %}
  <span class="operation-wrapper">
    <a href="{{ op.remove_disk.get_url }}?disk={{d.pk}}"
      class="btn btn-xs btn-{{ op.remove_disk.effect}} pull-right operation disk-remove-btn
11
      {% if op.remove_disk.disabled %}disabled{% endif %}">
12
      <i class="fa fa-{{ op.remove_disk.icon }} fa-fw-12"></i> {% trans "Remove" %}
13 14 15 16 17 18 19 20
    </a>
  </span>
{% endif %}
{% if op.resize_disk %}
  <span class="operation-wrapper">
    <a href="{{ op.resize_disk.get_url }}?disk={{d.pk}}"
      class="btn btn-xs btn-{{ op.resize_disk.effect }} pull-right operation disk-resize-btn
      {% if op.resize_disk.disabled %}disabled{% endif %}">
21
      <i class="fa fa-{{ op.resize_disk.icon }} fa-fw-12"></i> {% trans "Resize" %}
22 23
    </a>
  </span>
24
{% endif %}
25
<div style="clear: both;"></div>
26 27 28 29

{% if request.user.is_superuser %}
  <small>{% trans "File name" %}: {{ d.filename }}</small>
{% endif %}