{% extends 'sspromotions/email/base.html' %} {# Society Self-Service Copyright © 2018-2019 Yingtong Li (RunasSudo) Design by SendWithUs (Apache 2.0 licence) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . #} {% block css %} .group-options { width: 100px; position: absolute; right: 8px; top: 8px; color: #ccc; text-align: right; font-size: 8pt; } .group-options a { color: inherit !important; } {% endblock %} {% block content %} Hi {{ member.first_name if member else '[Name]' }}! Here's your latest news from MUMUS: {% set ns = namespace(last_date=None) %} {% for event in events %} {#{% set ns.last_date = event.date.date() %} #} {% set ns.last_date = event.date.date() %} {% endfor %}
{% if ns.last_date != event.date.date() %}{{ event.date.strftime('%a %d %b') }}{% endif %}{{ event.title }}{% if event.link %} · Read more ›{% endif %}{% if ns.last_date != event.date.date() %}{{ event.date.strftime('%a %d %b') }}{% endif %}{% if event.link %}{% endif %}{{ event.title }}{% if event.link %}{% endif %}
{% for group in groups %} {% if not loop.first %} {{ gap }} {% endif %}

{{ group.name }}

{% if group.group.subscribable %}
Unsubscribe
{% elif group.name not in settings.PROMO_GROUPS_MANDATORY %}
Change year level
{% endif %} {{ gap }} {% for item in group.bulletin_items %} {% if item.image %} {% if item.link %}{% endif %}{{ item.title }}{% if item.link %}{% endif %} {% endif %}
{{ item.title }}

{{ item.content | markdown }}

{% if item.link %}

Read more ›

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

More from MUMUS:

{{ gap }} {% for item in more %} {% endfor %}
{% if item.image %}{% if item.link %}{% endif %}{{ item.title }}{% if item.link %}{% endif %}
{% endif %}
{{ item.title }}

{{ item.content|striptags|truncate(100) }}

{% if item.link %}

Read more ›

{% endif %}

Subscribe to {{ item.group.name }}

{% endif %} {% endblock content %} {% block footer %} MUMUS Mail is personalised for you. Unsubscribe or manage your email subscription.
{% endblock %}