diff options
author | Hans-Peter Oeri <hp@oeri.ch> | 2018-10-25 13:27:51 +0200 |
---|---|---|
committer | Hans-Peter Oeri <hp@oeri.ch> | 2018-10-25 13:27:51 +0200 |
commit | c8cfe63aac73a92ae02354a5306ca5480808daff (patch) | |
tree | 7bf3bcf334051dbf2f8d96981b8d199470064eac /theme/cccevents/templates/category.html | |
parent | 17a536b7ffba296f1fc71337ce8aa2910f5ed3fc (diff) |
re-do site in schiedsstelle layout
Diffstat (limited to 'theme/cccevents/templates/category.html')
-rw-r--r-- | theme/cccevents/templates/category.html | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/theme/cccevents/templates/category.html b/theme/cccevents/templates/category.html new file mode 100644 index 0000000..0c8e031 --- /dev/null +++ b/theme/cccevents/templates/category.html | |||
@@ -0,0 +1,67 @@ | |||
1 | {% extends "index.html" %} | ||
2 | |||
3 | {% block title %} | ||
4 | {% if category == "medien" %} | ||
5 | {{ SITENAME }} | Medienmitteilungen | ||
6 | {% elif category == "pressreview" %} | ||
7 | {{ SITENAME }} | Pressereaktionen | ||
8 | {% else %} | ||
9 | {{ SITENAME }} | Articles in the {{ category }} category | ||
10 | {% endif %} | ||
11 | {% endblock %} | ||
12 | |||
13 | {% block content_title %} | ||
14 | {% if category == "medien" %} | ||
15 | <h1>Medienmitteilungen</h1> | ||
16 | {% elif category == "pressreview" %} | ||
17 | <h1>Pressereaktionen</h1> | ||
18 | {% else %} | ||
19 | <h1>Articles in the {{ category }} category</h1> | ||
20 | {% endif %} | ||
21 | {% endblock %} | ||
22 | |||
23 | {% block content %} | ||
24 | {% if category == "pressreview" %} | ||
25 | |||
26 | {% for article in dates %} | ||
27 | |||
28 | {% if (dates[loop.index-1].date.strftime("%Y")) != ((dates[loop.index-2]).date.strftime("%Y")) %} | ||
29 | <h2> {{ article.date.strftime("%Y") }} </h2> | ||
30 | {% endif %} | ||
31 | |||
32 | {% if (dates[loop.index-1].date.strftime("%Y%m%d")) != ((dates[loop.index-2]).date.strftime("%Y%m%d")) %} | ||
33 | <h3> {{ article.date.strftime("%-d. %B") }} </h3> | ||
34 | <ul> | ||
35 | {% endif %} | ||
36 | |||
37 | <li> | ||
38 | {{ article.publisher }}: <a href="{{ article.ext_url }}">{{ article.title }}</a> | ||
39 | </li> | ||
40 | |||
41 | {% if dates[loop.index] %} | ||
42 | {% if (dates[loop.index-1].date.strftime("%Y%m%d")) != ((dates[loop.index]).date.strftime("%Y%m%d")) %} | ||
43 | </ul> | ||
44 | {% endif %} | ||
45 | {% else %} | ||
46 | </ul> | ||
47 | {% endif %} | ||
48 | |||
49 | {% endfor %} | ||
50 | |||
51 | {% else %} | ||
52 | <ul> | ||
53 | {% for article in dates %} | ||
54 | <li> | ||
55 | <article class="hentry"> | ||
56 | {{ article.date.strftime("%A, %b %-d, %Y") }} - <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a><br /> | ||
57 | </article> | ||
58 | </li> | ||
59 | {% endfor %} | ||
60 | </ul> | ||
61 | {% endif %} | ||
62 | <h2>Abonniere diesen Kanal</h2> | ||
63 | <ul> | ||
64 | <li><a href="feeds/rss_{{ category }}.xml">RSS Feed</a> </li> | ||
65 | <li><a href="feeds/atom_{{ category }}.xml">ATOM Feed</a> </li> | ||
66 | </ul> | ||
67 | {% endblock %} | ||