diff --git a/themes/varia/templates/category.html b/themes/varia/templates/category.html index 5e8c574..522e5d3 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' %} +
+ + +
{{ article.summary }} + + {% if DEFAULT_LANG == 'en' %} + {{ glob.read_more }} + {% elif DEFAULT_LANG == 'nl' %} + {{ glob.read_more }} + {% endif %} + +
+

+ +
+ {% 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.title }} +
+ {{ article.event_start | strftime('%d %B %Y') }} +
+ +
+
{{ 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 %} -