mirror of
https://github.com/nelsbrock/NateMan.git
synced 2026-08-14 21:36:49 +02:00
Jinja-Macros separiert und time-Tags hinzugefügt
This commit is contained in:
@@ -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 -%}
|
||||
–{{ klausur.endperiod }}.
|
||||
{%- endif %}
|
||||
{%- endmacro %}
|
||||
Reference in New Issue
Block a user