{% extends "content/article_archive.html" %}
{% load i18n %}

{% block meta_title %}{{ article.headline }}{% endblock %}

{% block date_list %}
<h2>{% trans "Archive" %} {{year}}</h2>

<ul class="fa-ul">
 {% if active_category %}
  {% for date in date_list %}
   <li><span class="fa fa-calendar-o fa-fw"></span> <a href="{% url 'article-archive' category=active_category.slug year=year|date:'Y' month=date|date:'m' %}">{{active_category.name}}: {{ date|date:'F' }}</a></li>
 {% endfor %}
{% else %}
 {% for date in date_list %}
  <li><span class="fa fa-calendar-o fa-fw"></span> <a href="{% url 'article-archive' year=year|date:'Y' month=date|date:'m' %}">{{ date|date:'F' }}</a></li>
  {% endfor %}
 {% endif %}
</ul>
{% endblock %}
