{% load i18n swift_paging %}

<table id="containers" class="zebra-striped">
  <thead>
    <tr>
      <th>{% trans "Name" %}</th>
      <th>{% trans "Actions" %}</th>
    </tr>
  </thead>
  <tbody>
  {% for container in containers %}
  <tr class="{% cycle 'odd' 'even' %}">
    <td><a href="{% url horizon:nova:containers:object_index container.name %}">{{ container.name }}</a></td>
    <td id="actions">
      <ul>
        <li><a class="btn small" href="{% url horizon:nova:containers:object_index container.name %}">{% trans "List Objects" %}</a></li>
        <li><a class="btn small primary" href="{% url horizon:nova:containers:object_upload container.name %}">{% trans "Upload Object"%}</a></li>
        <li class="form">{% include "nova/containers/_delete.html" with form=delete_form %}</li>
      </ul>
    </td>
  </tr>
  {% endfor %}
  </tbody>
  {% if more %}
  <tfoot>
    <tr>
      <td colspan="2">{% object_paging containers %}</td>
    </tr>
  </tfoot>
  {% endif %}
</table>
