{% extends "base.html" %}
{% block title %}
    Authors
{% endblock title %}

{% block headers %}
    {% if initial %}
<h2>Authors {{ initial }}</h2>
    {% else %}
<h2>Authors by contribution</h2>
    {% endif %}
{% endblock headers %}

{% block years %}
    {% for i in initials %}
    <a href='?letter={{ i }}'>{{ i }}</a>
    {% endfor %}
{% endblock years %}

{% block content %}
<ul>
{% for person in persons %}
<li> {{ person.html() }} {% if not initial %} [{{ person.papers__count }}]{% endif %} {{ person.html_admin_buttons() }}</li>
{% endfor %}
</ul>

{% endblock %}
