{% extends "base.html" %}

{% block title %}Bases{% endblock title %}

{% block content %}
{% if base_list %}
    <table border="1">
    <tr>
        <th rowspan="2">Bases</th>
        <th colspan="2">Airstrips</th>
    </tr>
    <tr><th>Attached</th><th>Unattached</th></tr>
    {% for base, attached_count, unattached_count in base_list %}
    <tr>
        <td>{{ base.name }}</td>
        <td><a href="{% url 'base_attached_detail' base.ident %}">{{ attached_count }}</a></td>
        <td><a href="{% url 'base_unattached_detail' base.ident %}">{{ unattached_count }}</a></td>
    </tr>
    {% endfor %}
    </table>
{% endif %}
{% endblock content %}

{% extends "base.html" %}

{% block title %}Bases{% endblock title %}

{% block content %}
{% if base_list %}
    <table border="1">
    <tr>
        <th rowspan="2">Bases</th>
        <th colspan="2">Airstrips</th>
        {% if user.is_superuser %}
        <th rowspan="2"></th>
        {% endif %}
    </tr>
    <tr><th>Attached</th><th>Unattached</th></tr>
    {% for base, attached_count, unattached_count in base_list %}
    <tr>
        <td>{{ base.name }}</td>
        <td><a href="{% url 'base_attached_detail' base.ident %}">{{ attached_count }}</a></td>
        <td><a href="{% url 'base_unattached_detail' base.ident %}">{{ unattached_count }}</a></td>
        {% if user.is_superuser %}
        <td><a href="{% url 'base_edit' base.ident %}">Edit</a></td>
        {% endif %}
    </tr>
    {% endfor %}
    </table>
{% endif %}
{% endblock content %}

Add links to base editing urls for superusers
Add links to base editing urls for superusers
