horizon/horizon/horizon/dashboards/nova/templates/nova/objects/_list.html

30 lines
910 B
HTML

{% load i18n swift_paging %}
<table id="objects" class="zebra-striped">
<thead>
<tr>
<th>{% trans "Name"%}</th>
<th style="width: 100px;">{% trans "Actions"%}</th>
</tr>
</theaad>
<tbody>
{% for object in objects %}
<tr class="{% cycle 'odd' 'even' %}">
<td>{{ object.name }}</td>
<td id="actions">
<ul>
<li><a class="btn small" href="{% url horizon:nova:containers:object_copy container_name object.name %}">{% trans "Copy"%}</a></li>
<li><a class="btn small" href="{% url horizon:nova:containers:object_download container_name object.name %}">{% trans "Download"%}</a>
<li class="form">{% include "nova/objects/_delete.html" with form=delete_form %}</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan="2">{% object_paging objects %}</td>
</tr>
</tfoot>
</table>