{% extends "base.html" %}

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

{% block headers %}
    {% if tag %}
<h2>{{ tag }}</h2>
    {% else %}
        {% if year %}
<h2>Papers {{ year }}</h2>
        {% else %}
<h2>Last Papers</h2>
        {% endif %}
    {% endif %}
{% endblock headers %}

{% block info %}
<a href='rss.xml'>[RSS]</a>
<a href='?{{ query_string }}&txt='>[plain text]</a> 
    {% if tag %}
<a href='?{{ query_string}}&erc='>[erc format]</a>
    {% endif %}
{% endblock info %}

{% block content %}
    {% block list %}
    {{ html_admin_buttons }}
    <ul>
    {% for paper in papers %}
    <li> {{ paper.html() }} {{ paper.html_admin_buttons() }}</li>
    {% endfor %}
    </ul>
    {% endblock list %}
{% endblock content %}
