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

4
<i class="{% if d.is_downloading %}icon-refresh icon-spin{% else %}icon-file{% if not d.ready %}" style="color: #d9534f;{% endif %}{% endif %}"></i> 
5 6 7 8 9 10 11 12
{{ d.name }} (#{{ d.id }}) - 
{% if not d.is_downloading %}
  {% if d.ready %}
    {{ d.size|filesize }}
  {% else %}
    <div class="label label-danger">failed</div>
  {% endif %}
{% else %}<span class="disk-list-disk-percentage" data-disk-pk="{{ d.pk }}">{{ d.get_download_percentage }}</span>%{% endif %}
13 14 15 16
<a href="{% url "dashboard.views.disk-remove" pk=d.pk %}?next={{ request.path }}" 
  data-disk-pk="{{ d.pk }}" class="btn btn-xs btn-danger pull-right disk-remove">
    <i class="icon-remove"></i>{% if long_remove %} Remove{% endif %}
</a>
17
<div class="btn btn-xs btn-danger pull-right"><i class="icon-remove"></i>{% if long_remove %} Remove{% endif %}</div>
18
<div style="clear: both;"></div>