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

    {% block headers %}
        {% if year %}
<h2>Events {{ year }}</h2>
        {% else %}
<h2>Forthcoming Events</h2>
        {% endif %}
    {% endblock headers %}

    {% block info %}
<a href='rss.xml'>[RSS]</a>
    {% endblock info %}

    {% block content %}
{{ html_admin_buttons }}
<ul>
{% for item in events %}
<li> {{ item.html() }} {{ item.html_admin_buttons() }}{% if item.hidden %} [Hidden!]{% endif %}</li>
{% endfor %}
</ul>

{% endblock %}
