myblog/myapp/templates/zinnia/entry_archive_month.html
{% extends "zinnia/entry_list.html" %}
{% load i18n %}
{% block meta-description %}{% trans "Archives" %} {{ month|date:"YEAR_MONTH_FORMAT" }}{% endblock meta-description %}
{% block title %}{% trans "Archives" %} {{ month|date:"YEAR_MONTH_FORMAT" }}{% endblock title %}
{% block body-class %}{{ block.super }} archive date month year-{{ month|date:"Y" }} month-{{ month|date:"m" }}{% endblock body-class %}
{% block content-title %}
<section class="title">
<div class="content">
<h1>{% trans "Archives" %} {{ month|date:"YEAR_MONTH_FORMAT" }}</h1>
</div>
</section>
{% endblock content-title %}
{% block content-related %}
<section class="bottom">
<div class="content">
<div class="pure-g">
{% if date_list %}
<div class='pure-u-1-2 pure-u-sm-1-3 pure-u-lg-1-4'>
<h3>{% trans "Daily archives" %}</h3>
<ul>
{% for date in date_list %}
<li>
<a href="{% url 'zinnia:entry_archive_day' date|date:"Y" date|date:"m" date|date:"d" %}" rel="archives">{{ date|date:"DATE_FORMAT" }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if previous_month %}
<div class='pure-u-1-2 pure-u-sm-1-3 pure-u-lg-1-4'>
<h3>{% trans "Previous month" %}</h3>
<p>
<a href="{% url 'zinnia:entry_archive_month' previous_month|date:"Y" previous_month|date:"m" %}" rel="archives">{{ previous_month|date:"YEAR_MONTH_FORMAT" }}</a>
</p>
</div>
{% endif %}
{% if next_month %}
<div class='pure-u-1-2 pure-u-sm-1-3 pure-u-lg-1-4'>
<h3>{% trans "Next month" %}</h3>
<p>
<a href="{% url 'zinnia:entry_archive_month' next_month|date:"Y" next_month|date:"m" %}" rel="archives">{{ next_month|date:"YEAR_MONTH_FORMAT" }}</a>
</p>
</div>
{% endif %}
<div class='pure-u-1-2 pure-u-sm-1-3 pure-u-lg-1-4'>
<h3>{% trans "Archives" %}</h3>
<ul>
<li>
<a href="{% url 'zinnia:entry_archive_year' month|date:"Y" %}" rel="archives">{{ month|date:"Y" }}</a>
</li>
</ul>
</div>
</div>
</div>
</section>
{% endblock content-related %}