{% extends "base.html" %}
{% block content %}
  <p>This is an overview over current builds.</p>
<table class="table table-striped">
  <tr>
    <th>Repository</th>
    <th>Series</th>
    <th>Package name</th>
    <th>Package version</th>
    <th>Architecture</th>
    <th>State</th>
    <th>Details</th>
  </tr>
{% for build in build_records %}
  <tr>
    <td>{{ build.series.repository.name.capitalize }}</a></td>
    <td>{{ build.series.name.capitalize }}</td>
    <td>{{ build.source_package_name }}</td>
    <td>{{ build.version }}</td>
    <td>{{ build.architecture }}</td>
    <td>{{ build.get_state_display }}</td>
    <td><a href="{% url build_detail build_id=build.id %}" class="btn">Details</a></td>
    {% if build.allow_rebuild %}
    <td>
      <form method="post" action="{% url build_detail build_id=build.id %}">
        {% csrf_token %}
        <input type="submit" name="action" value="Rebuild" />
      </form>
    </td>
    {% endif %}
  </tr>
{% endfor %}
</table>
{% endblock %}

{% extends "base.html" %}
{% block content %}
  <p>This is an overview over current builds.</p>
<table class="table table-striped">
  <tr>
    <th>Repository</th>
    <th>Series</th>
    <th>Package name</th>
    <th>Package version</th>
    <th>Architecture</th>
    <th>State</th>
    <th colspan=="2">Details</th>
  </tr>
{% for build in build_records %}
  <tr>
    <td>{{ build.series.repository.name.capitalize }}</a></td>
    <td>{{ build.series.name.capitalize }}</td>
    <td>{{ build.source_package_name }}</td>
    <td>{{ build.version }}</td>
    <td>{{ build.architecture }}</td>
    <td>{{ build.get_state_display }}</td>
    <td><a href="{% url build_detail build_id=build.id %}" class="btn">Details</a></td>
    {% if build.allow_rebuild %}
    <td>
      <form method="post" action="{% url build_detail build_id=build.id %}">
        {% csrf_token %}
        <input type="submit" name="action" value="Rebuild" />
      </form>
    </td>
    {% endif %}
  </tr>
{% endfor %}
</table>
{% endblock %}

Fix layout when a rebuild button is present
Fix layout when a rebuild button is present
