From c8cfe63aac73a92ae02354a5306ca5480808daff Mon Sep 17 00:00:00 2001 From: Hans-Peter Oeri Date: Thu, 25 Oct 2018 13:27:51 +0200 Subject: re-do site in schiedsstelle layout --- theme/cccevents/templates/category.html | 67 +++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 theme/cccevents/templates/category.html (limited to 'theme/cccevents/templates/category.html') 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 @@ +{% extends "index.html" %} + +{% block title %} + {% if category == "medien" %} + {{ SITENAME }} | Medienmitteilungen + {% elif category == "pressreview" %} + {{ SITENAME }} | Pressereaktionen + {% else %} + {{ SITENAME }} | Articles in the {{ category }} category + {% endif %} +{% endblock %} + +{% block content_title %} + {% if category == "medien" %} +

Medienmitteilungen

+ {% elif category == "pressreview" %} +

Pressereaktionen

+ {% else %} +

Articles in the {{ category }} category

+ {% endif %} +{% endblock %} + +{% block content %} + {% if category == "pressreview" %} + + {% for article in dates %} + + {% if (dates[loop.index-1].date.strftime("%Y")) != ((dates[loop.index-2]).date.strftime("%Y")) %} +

{{ article.date.strftime("%Y") }}

+ {% endif %} + + {% if (dates[loop.index-1].date.strftime("%Y%m%d")) != ((dates[loop.index-2]).date.strftime("%Y%m%d")) %} +

{{ article.date.strftime("%-d. %B") }}

+ + {% endif %} + {% else %} + + {% endif %} + + {% endfor %} + + {% else %} + + {% endif %} +

Abonniere diesen Kanal

+ +{% endblock %} -- cgit v1.2.3