-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.j2
36 lines (30 loc) · 893 Bytes
/
template.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% macro format_talk(talk) %}
{{ talk.title }} ({{ ", ".join(talk.persons) }})
{{ talk.description }}
{% endmacro %}
{##}
{% if date_changed %}
*Talks on {{ date }}*:
{% else %}
*Changes to talks on {{ date }}*:
{% endif %}
{% if talks_added %}
Talks added:
{% for talk_added in talks_added %}{{ format_talk(talk_added.new_talk) }}{% endfor %}
{% endif %}
{##}
{% if talks_changed %}
Talks changed:
{% for talk_changed in talks_changed %}{{ format_talk(talk_changed.new_talk) }}{% endfor %}
{% endif %}
{##}
{% if talks_removed %}
Talks removed:
{% for talk_removed in talks_removed %}{{ format_talk(talk_removed.old_talk) }}{% endfor %}
{% endif %}
{##}
{% if hosts_changed %}
New hosts: {{ ", ".join(hosts_changed[0].new_hosts) }} (instead of {{ ", ".join(hosts_changed[0].old_hosts) }})
{% endif %}
{##}
See the wiki for more details: https://wiki.chaosdorf.de/Freitagsfoo/{{ date }}