aboutsummaryrefslogtreecommitdiff
path: root/common/old-news.j2.inc
diff options
context:
space:
mode:
Diffstat (limited to 'common/old-news.j2.inc')
-rw-r--r--common/old-news.j2.inc44
1 files changed, 44 insertions, 0 deletions
diff --git a/common/old-news.j2.inc b/common/old-news.j2.inc
new file mode 100644
index 00000000..c11ac0c5
--- /dev/null
+++ b/common/old-news.j2.inc
@@ -0,0 +1,44 @@
1{% macro oldnews(year) %}
2 <div class="container-fluid">
3 <div class="container">
4 <article>
5 <div class="row">
6 <div class="container text-center">
7 <h1>{{ _("News") + " " + (year|string) }}<a name="news"></a></h1>
8 <section>
9 <p>
10 {% trans %}
11 News posts about changes related to
12 GNUnet such as releases and events
13 {% endtrans %}
14 &#8211;
15 <a href="{{ url_localized('rss.xml') }}">{{ _("subscribe to our RSS feed") }}</a>
16 </p>
17 </section>
18 </div>
19 </div>
20 <div class="row">
21 <b>{{ year }}</b>
22 <ul class="timeline">
23 {% for item in newsdata|selectattr('date.year', 'eq', year) %}
24 <li>
25 <section class="item-preview">
26 <header>
27 <h3>{{ item['title']|e }}</h3>
28 <p class="item-date">
29 {{ item['date'] }}
30 </p>
31 </header>
32 <p class="item-abstract">
33 {{ item['abstract'] }} <br/>
34 [<a href="{{ item['page'] }}" title="{{ item['date']}}">{{ _("read more") }}</a>]
35 </p>
36 </section>
37 </li>
38 {% endfor %}
39 </ul>
40 </div>
41 </article>
42 </div>
43 </div>
44{% endmacro %}