From 74149af05dd5489d11e4a2139e9223f141f086a6 Mon Sep 17 00:00:00 2001 From: marwoodandrew Date: Thu, 3 Aug 2023 13:05:03 +1000 Subject: [PATCH] SDAAP-90 Add the newslist planning template --- server/templates/newslist_planning_template.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 server/templates/newslist_planning_template.html diff --git a/server/templates/newslist_planning_template.html b/server/templates/newslist_planning_template.html new file mode 100644 index 000000000..d857ca371 --- /dev/null +++ b/server/templates/newslist_planning_template.html @@ -0,0 +1,11 @@ +{% for item in items %} +{% if item['published_archive_items']|length == 0 and item['text_assignees']|length == 0 %} +

{% if item.get('place') %}{{ item.get('place')|join(', ') }} - {% endif %}{% if item.get('description_text') %}{{ item.description_text }} {% endif %}{% if (item.get('event') or {}).get('location') %}{{ item.event.location[0].name }}, {% endif %}{% if item.get('schedule') %}{{ item.schedule }}{% endif %} TO COME ({{ item.slugline }})

+{% endif %} +{% for i in item['published_archive_items'] %} +

{% if item.get('place') %}{{ item.get('place')|join(', ') }} - {% endif %}{{ i['archive_text'] }} PUBLISHED ({{ i['archive_slugline'] }}){% if not item.get('event') and item['text_assignees']|length > 0 %} TO COME {{ item.get('text_assignees')|join(', ') }}{% endif %}

+{% endfor %} +{% if item['text_assignees']|length > 0 and ((item['event']) or item['published_archive_items']|length == 0) %} +

{% if item.get('place') %}{{ item.get('place')|join(', ') }} - {% endif %}{% if item.get('description_text') %}{{ item.description_text }} {% endif %}{% if (item.get('event') or {}).get('location') %}{{ item.event.location[0].name }}, {% endif %}{% if item.get('schedule') %}{{ item.schedule }}{% endif %} TO COME {{ item.get('text_assignees')|join(', ') }}

+{% endif %} +{% endfor %} \ No newline at end of file