{% extends "mvp/email/base.html" %} {% load i18n mvp_email mvp_community_notifications %} {% block subject %}{% include "notifications/email/digest/subject.txt" %}{% endblock %} {% block preheader %}{% for n in notifications|slice:":3" %}{{ n.get_subject }}{% if not forloop.last %} ยท {% endif %}{% endfor %}{% endblock %} {% block body %} {% include "notifications/email/digest/subject.txt" %} {% for type_key, items in notifications_by_type.items %} {% if not forloop.first %}{% endif %} {% notification_type_name type_key as type_name %} {{ type_name }} {% for n in items %} {% if n.url %}{% email_url n.url as n_url %}{{ n.get_subject }}{% else %}{{ n.get_subject }}{% endif %} {% if n.get_text %}{{ n.get_text }}{% endif %} {% endfor %} {% endfor %} {% email_url "mvp_community_notifications:list" as list_url %} {% trans "See all notifications" as list_text %} {% endblock %} {% block footer %} {% include "notifications/email/unsubscribe_footer.html" with type_keys=notifications_by_type.keys %} {% endblock %}