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

    {% block headers %}
        {% if year %}
<h2>News {{ year }}</h2>
        {% else %}
<h2>Latest News</h2>
        {% endif %}
    {% endblock headers %}

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

    {% block content %}
{{ html_admin_buttons }}

{% if news %}
<ul>
{% for item in news %}
<li> {{ item.html() }} {{ item.html_admin_buttons() }}</li>
{% endfor %}
</ul>
{% else %}
<p>No recent news available.</p>
{% endif %}

{% endblock %}
