{% extends "base.html" %}
{# Copyright The IETF Trust 2007, All Rights Reserved #}

{% block pagehead %}{% if lastcall %}
<link rel="alternate" type="application/atom+xml" href="/feed/last-call/">
{% endif %}{% endblock %}

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

{% block content %}
<h1>{{ title }}</h1>

{% regroup object_list by cur_state_id as grouped %}
{% for state in grouped %}
<a name="grp{{ state.list.0.cur_state }}"><h2>{{ state.list.0.cur_state }}</h2></a>
<table>
<tr><th>Area</th><th>{% ifequal state.list.0.cur_state.state "In Last Call" %}Expires at{% else %}Date{% endifequal %}</th></tr>
{% for doc in state.list %}
{% include "idtracker/document_entry.html" %}
{% if doc.ballot_others %}
{% for doc in doc.ballot_others %}
{% include "idtracker/document_entry.html" %}
{% endfor %}
{% endif %}
{% endfor %}
</table>
{% endfor %}
{% endblock %}
