Skip to content

Commit

Permalink
SDAAP-90 Add the newslist planning template
Browse files Browse the repository at this point in the history
  • Loading branch information
marwoodandrew committed Aug 4, 2023
1 parent 5f35c8b commit 74149af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/templates/newslist_planning_template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% for item in items %}
{% if item['published_archive_items']|length == 0 and item['text_assignees']|length == 0 %}
<p>{% 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 }})</p>
{% endif %}
{% for i in item['published_archive_items'] %}
<p>{% 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 %}</p>
{% endfor %}
{% if item['text_assignees']|length > 0 and ((item['event']) or item['published_archive_items']|length == 0) %}
<p>{% 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(', ') }}</p>
{% endif %}
{% endfor %}

0 comments on commit 74149af

Please sign in to comment.