From bdae5de52f5a9313069ff7ad761b805b240012a8 Mon Sep 17 00:00:00 2001 From: rra Date: Mon, 3 Jun 2019 17:01:31 +0200 Subject: [PATCH] added special layout for curriculum category --- themes/varia/templates/category.html | 137 ++++++++++++++++++++++++++- 1 file changed, 136 insertions(+), 1 deletion(-) diff --git a/themes/varia/templates/category.html b/themes/varia/templates/category.html index 5e8c574b3..522e5d3b3 100644 --- a/themes/varia/templates/category.html +++ b/themes/varia/templates/category.html @@ -1,6 +1,141 @@ {% extends "index.html" %} +{% block banner %} + {% if category == 'curriculum' %} + + {% else %} + {{ super() }} + {% endif %} +{% endblock %} + +{% block content %} +{% set glob={} %} + {% if DEFAULT_LANG == 'nl' %} + {% set _ = glob.update({'published_at': 'Gepubliceerd op '}) %} + {% set _ = glob.update({'related_to': ' Gerelateerd aan '}) %} + {% set _ = glob.update({'written_by': 'Geschreven door '}) %} + {% set _ = glob.update({'read_more': 'lees meer '}) %} + {% set _ = glob.update({'upcoming': 'Aankomende workshops '}) %} + {% set _ = glob.update({'past': 'Eerdere workshops '}) %} + {% endif %} + {% if DEFAULT_LANG == 'en' %} + {% set _ = glob.update({'published_at': 'Published at '}) %} + {% set _ = glob.update({'related_to': ' Relating to '}) %} + {% set _ = glob.update({'written_by': 'Written by '}) %} + {% set _ = glob.update({'read_more': 'read more'}) %} + {% set _ = glob.update({'upcoming': 'Upcoming workshops '}) %} + {% set _ = glob.update({'past': 'Past workshops '}) %} + {% endif %} + {% if category == 'curriculum' %} +
+

{{glob.upcoming}}

+
+ {% for article in articles_page.object_list %} + {% set thumb_size = '/thumb' %} + {% if article.event_start %} + {% set event_status = '' %} + {% if article.event_start < article.date.now() %} + {% set event_status = ' past' %} + {% endif %} + {% if article.event_start >= article.date.now() %} + {% set event_status = ' current' %} + {% set thumb_size = '/thumb2x' %} + {% endif %} + {% endif %} + {% if event_status == ' current' %} + + {% endfor %} +
+

{{glob.past}}

+
+ {% for article in articles_page.object_list %} + {% set thumb_size = '/thumb' %} + {% if article.event_start %} + {% set event_status = '' %} + {% if article.event_start < article.date.now() %} + {% set event_status = ' past' %} + {% endif %} + {% if article.event_start >= article.date.now() %} + {% set event_status = ' current' %} + {% set thumb_size = '/thumb2x' %} + {% endif %} + {% endif %} + {% if event_status == ' past' %} +
+ +
{{ article.summary }} + + {% if DEFAULT_LANG == 'en' %}{{ glob.read_more }} + {% elif DEFAULT_LANG == 'nl' %}{{ glob.read_more }}{% endif %} +
+

+ {% endif %} +
+ {% endfor %} + + {% else %} + {{ super() }} + {% endif %} +{% endblock %} + + {% block content_title %}

Category: {{ category }}


{% endblock %} -