<div class="container">
    <form method="POST" class="form-inline">{% csrf_token %}
    <div class="panel panel-default">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title">Data</h3>
      </div>
      <div class="panel-body">
        <table class="table table-condensed">
          <thead>
              <tr>
                  <th>Image</th>
                  <th>Project</th>
                  <th>Tags</th>
              </tr>
          </thead>
          <tbody>
        {% for i in images %}
            <tr>
              <th><label>
                  <a href="{% url 'release_dashboard:docker_image_tag' i.project.name i.name%}">
                    {{ i.name }}
                  </a>
                </label></th>
              <td>
                <a href="{% url 'release_dashboard:docker_project_images' i.project.name%}">
                  {{ i.project.name }}
                </a>
              </td>
              <td>
                <div class="list-group">
              {% for tag in i.dockertag_set.all %}
                  <div id="row_{{tag.pk}}" class="list-group-item">
                    <a href="{{URL_BASE}}{{i.name}}/manifests/{{tag.name}}">
                    {% if tag.name|length > 10 %}
                      <span class="btn btn-warning">
                    {% else %}
                      <span class="btn btn-success">
                    {% endif %}
                          {{ tag.name|truncatechars:10 }}
                      </span>
                    </a>
                    <div class="pull-right">
                      <button pk="{{tag.pk}}" class="delete btn btn-danger">Delete</button>
                      <span id="{{tag.pk}}" class="hidden">Done</span>
                    </div>
                    <span class="text-info">
                      {{tag.date|date:"DATETIME_FORMAT"}}
                    </span>
                  </div>
              {% endfor %}
                </div>
              </td>
            </tr>
        {% endfor %}
          </tbody>
        </table>
      </div>
    </div>
    </form>
</div>
