Jinja-Macros separiert und time-Tags hinzugefügt

This commit is contained in:
2021-07-28 23:33:53 +02:00
parent c5371af7c9
commit c2b936dc8e
10 changed files with 27 additions and 39 deletions
+12
View File
@@ -0,0 +1,12 @@
{% macro date(date) -%}
<time datetime="{{ date.strftime('%Y-%m-%d') }}">
{{- date.strftime('%a, %d.%m.%Y') -}}
</time>
{%- endmacro %}
{% macro zeitraum(klausur) -%}
{{- klausur.startperiod }}.
{%- if klausur.startperiod != klausur.endperiod -%}
&ndash;{{ klausur.endperiod }}.
{%- endif %}
{%- endmacro %}