blob: ca7401817f31837ba760ba686e760613f132d69c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{% load i18n %}
<h3>{% trans 'Archive' context 'Blog archive' %}</h3>
{% if archive %}
<ul class='archive-list'>
{% for a_year in archive %}
<li><a class="node-toggle" node-target="{{ a_year.0 }}-list" node-state="closed" href="javascript:void(0)" onclick="toggleNode(this);">+</a> <a href="{% url 'weblog:ArchiveIndex' year=a_year.0 %}">{{ a_year.0 }}</a>
<ul id="{{ a_year.0 }}-list" class='archive-child-list'>
{% for a_month in a_year.1 %}
<li><a href="{% url 'weblog:ArchiveIndex' year=a_year.0 month=a_month.0 %}">{{ a_month.1 }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
{% else %}
<div class="text-center">
<p>{% trans 'Nothing has been posted yet.' %}</p>
</div>
{% endif %}
</ul>
|