Source

django-committees / committees / templates / committees / list.html

Full commit
{% extends "base.html" %}

{% block title %}Committees{% endblock %}

{% block content %}
    <h1>Committees{% if perms.committees.change_committee %} <a class='edit' href='{% url admin:committees_committee_changelist %}'>(Edit)</a>{% endif %}</h1>
    {% regroup committees by type as type_list %}
    <ul id='committees'>
    {% for type in type_list %}
        <li><h2>{{ type.grouper }}</h2></li>
        <ul>
            {% for committee in type.list %}
            <li>
                <a title='{{ committee.name }}' href='{% url view_committee committee.slug %}'>{{ committee }}</a>
            </li>
            {% endfor %}
        </ul>
    {% endfor %}
    </ul>
{% endblock %}