-{% extends "email_base.html" %}
-{% load i18n %}
-{% load humanize %}
-{% load extra_tags %}
-
-{% block content %}
- <p>{% trans "Hello" %} {{ user.username }},</p>
-
- <p>{% blocktrans with settings.APP_SHORT_NAME as app_title %}
- This is the {{ digest_type }} activity digest for {{ app_title }}
- {% endblocktrans %}</p>
-
- {% if new_users %}
- <h3>
- {% blocktrans with new_users|length as nusers_count and new_users|length|pluralize as nusers_count_pluralize and settings.APP_SHORT_NAME as app_title %}
- {{ nusers_count }} new user{{ nusers_count_pluralize }} joined the {{ app_title }} community:
+{% load i18n extra_tags email_tags %}
+
+{% declare %}
+ prefix = settings.EMAIL_SUBJECT_PREFIX
+ app_name = settings.APP_SHORT_NAME
+ app_url = settings.APP_URL
+
+ new_member_links = html.mark_safe(", ".join([html.objlink(u, style=settings.EMAIL_ANCHOR_STYLE) for u in new_members]))
+ new_question_count = digest.count
+
+{% enddeclare %}
+
+{% email %}
+ {% subject %}{% blocktrans %}{{ prefix }} Daily digest{% endblocktrans %}{% endsubject %}
+
+ {% htmlcontent notifications/base.html %}
+ {% blocktrans %}
+ This is a brief of what's going on the {{ app_name }} community since our last update.
+ {% endblocktrans %}
+
+ {% if new_member_count %}
+ <p style="{{ p_style }}">
+ {% if show_all_users %}
+ {% blocktrans %}
+ There are {{ new_member_count }} new members in the community. {{ new_member_links }} were the most active so far.