Anfänglicher Commit: Producion Version Stand: Oktober 2014
This commit is contained in:
20
templates/content/article_archive_year.html
Normal file
20
templates/content/article_archive_year.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "content/article_archive.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block meta_title %}{{ article.headline }}{% endblock %}
|
||||
|
||||
{% block date_list %}
|
||||
<h2>{% trans "Archive" %} {{year}}</h2>
|
||||
|
||||
<ul class="list" style="margin: 20px;">
|
||||
{% if active_category %}
|
||||
{% for date in date_list %}
|
||||
<li class="date"><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 class="date"><a href="{% url "article-archive" year=year|date:'Y' month=date|date:'m' %}">{{ date|date:'F' }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user