Subject: [{{ settings.SITE_NAME }}] weekly bulletin

Weekly bulletin for {{ settings.SERVER_URL }}{% if news %}


--- News ---
{% for item in news %}
* {{ item.title }}
  {{ settings.SERVER_URL + item.url() }}
{% if not loop.last %}

{% endif %}
{% endfor %}
{% endif %}{% if events %}


--- Events next week ---
{% for event in events %}
* {{ event.title }}
  {{ event.date_from|date("D j F Y") }} - {{ event.date_to|date("D j F Y") }}
  {% if event.place %}{{ event.place }}{% endif %}

  {{ settings.SERVER_URL + event.url() }}
{% if not loop.last %}

{% endif %}
{% endfor %}{% endif %}{% if seminars %}


--- Seminars next week ---
{% for group in seminars|groupby('date') %}
{{ group.grouper|date("D j F Y") }}
{% for seminar in group.list %}
* {% if seminar.description %}{{ seminar.description }}
  {% endif %}
{% for speaker in seminar.speakers.all() %}{% if not loop.first %}, {% endif %}{{ speaker.firstname }} {{ speaker.lastname }}{% if speaker.affiliation %} ({{ speaker.affiliation }}){% endif %}{% endfor %}{% if seminar.speakers.all() %}: {% endif %}{{ seminar.title }}
  {{ seminar.place }}{% if seminar.time %}, {{ seminar.time|time("H:i") }}
{% endif %}
  {{ settings.SERVER_URL + seminar.url() }}
{% if not loop.last %}

{% endif %}
{% endfor %}
{% if not loop.last %}

{% endif %}
{% endfor %}{% endif %}
{% if positions %}


--- Open Positions ---
{% for item in positions %}
* {% if item.creation_time.date() >= last_week_start %}(NEW) {% endif %}{{ item.title }} (deadline: {{ item.deadline|date("D j F Y") }})
  {{ settings.SERVER_URL + item.url() }}
{% if not loop.last %}

{% endif %}
{% endfor %}
{% endif %}

