summaryrefslogtreecommitdiff
path: root/theme/cccevents/templates/category.html
diff options
context:
space:
mode:
authorHans-Peter Oeri <hp@oeri.ch>2018-10-27 08:43:47 +0000
committerHans-Peter Oeri <hp@oeri.ch>2018-10-27 08:43:47 +0000
commitcc1cc2647c681e5275dedbe79af272e0450d7f64 (patch)
tree3f5071d9f25b89b311e09a20b22b9c5a7b225d27 /theme/cccevents/templates/category.html
parent17a536b7ffba296f1fc71337ce8aa2910f5ed3fc (diff)
parent928baa83e47a11d765493af38307d247148b0a2e (diff)
Merge branch 'master' into 'master'
re-do in layout See merge request cccschiedsstelle/help.ccc.de!1
Diffstat (limited to 'theme/cccevents/templates/category.html')
-rw-r--r--theme/cccevents/templates/category.html67
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 %}