theme/templates/period_archives.html

Sat, 19 Mar 2016 00:50:44 +0100

author
David Douard <david.douard@logilab.fr>
date
Sat, 19 Mar 2016 00:50:44 +0100
changeset 42
3c30fc0f8ce0
parent 36
9507107a1133
permissions
-rw-r--r--

[theme] add '(last updated on xxx)' in article timestamps when available

36
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
1 {% extends "base.html" %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
2 {% block archclass %} class="active"{%endblock%}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
3
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
4 {% block content %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
5
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
6 <dl>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
7 {% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
8 <h3><a href="{{SITEURL}}/{{year}}" class="text">Archive for {{ year }}</a></h3>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
9 <ul class="archive-list">
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
10 {% for article in date_year %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
11 <li><span class="text-muted">{{article.locale_date}} &raquo; </span><a href="{{ SITEURL }}/{{ article.url }}">{{article.title}}</a></li>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
12 {% endfor %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
13 </ul>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
14 {% endfor %}
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
15 </dl>
9507107a1133 [theme] use a personalized bricks theme
David Douard <david.douard@logilab.fr>
parents:
diff changeset
16 {% endblock %}

mercurial