blob: a1eee55feff22acdfd30e1e14ddada8ed7861bf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{% load i18n %}
{% regroup archives by year as year_list %}
<ul>
{% for year in year_list %}
<li>
<a title="{% trans "Archives" %} {{ year.grouper }}" rel="archives"
href="{% url gstudio_nodetype_archive_year year.grouper %}">{{ year.grouper }}</a>
{% regroup year.list by month as month_list %}
<ul>
{% for month in month_list %}
<li>
{% with month.list.0 as month_date %}
<a title="{% trans "Archives" %} {{ month_date|date:"YEAR_MONTH_FORMAT" }}" rel="archives"
href="{% url gstudio_nodetype_archive_month month_date|date:"Y" month_date|date:"m" %}">
{{ month_date|date:"F" }}
</a>
{% endwith %}
{% regroup month.list by day as day_list %}
<ul>
{% for day in day_list %}
<li>
{% with day.list.0 as day_date %}
<a title="{% trans "Archives" %} {{ day_date|date:"DATE_FORMAT" }}" rel="archives"
href="{% url gstudio_nodetype_archive_day day_date|date:"Y" day_date|date:"m" day_date|date:"d" %}">
{{ day_date|date:"MONTH_DAY_FORMAT" }}
</a>
{% endwith %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</li>
{% empty %}
<li>
{% trans "No archives yet." %}
</li>
{% endfor %}
</ul>
|