1 {% load i18n extra_tags email_tags %}
4 prefix = html.mark_safe(settings.EMAIL_SUBJECT_PREFIX)
5 app_name = settings.APP_SHORT_NAME
6 app_url = settings.APP_URL
8 new_member_links = html.mark_safe(", ".join([html.objlink(u, style=settings.EMAIL_ANCHOR_STYLE) for u in new_members]))
9 new_question_count = digest.count
14 {% subject %}{% blocktrans %}{{ prefix }} Daily digest{% endblocktrans %}{% endsubject %}
16 {% htmlcontent notifications/base.html %}
18 new_questions_link = html.hyperlink(app_url + reverse('questions') + '?sort=' + _('latest'), _('new questions'), style=a_style)
19 user_questions = digest.get_for_user(recipient)
20 subscriptions_link = html.hyperlink(app_url + recipient.get_subscribed_url(), _('subscriptions'), style=a_style)
23 <p style="{{ p_style }}">
25 This is a brief of what's going on the {{ app_name }} community since our last update.
29 {% if new_member_count %}
30 <p style="{{ p_style }}">
31 {% if show_all_users %}
33 There are {{ new_member_count }} new members in the community. {{ new_member_links }} were the most active so far.
37 {{ new_member_links }} have joined the {{ app_name }} community.
43 {% if new_question_count %}
45 <p style="{{ p_style }}">
47 {{ new_question_count }} {{ new_questions_link }} were posted since our last update.
51 {% if user_questions.interesting %}
52 <p style="{{ p_style }}">
53 {% trans "We think you might like the following questions:" %}
56 {% for q in user_questions.interesting %}
58 <a style="{{ a_style }}" href="{{ app_url }}{{ q.get_absolute_url }}">{{ q.title }}</a>
64 {% if user_questions.may_help %}
65 <p style="{{ p_style }}">
66 {% trans "These new questions didn't get many attention from the community, but we think you may be able to help:" %}
69 {% for q in user_questions.may_help %}
71 <a style="{{ a_style }}" href="{{ app_url }}{{ q.get_absolute_url }}">{{ q.title }}</a>
76 {% if user_questions.subscriptions %}
77 <p style="{{ p_style }}">
78 {% blocktrans %}Meanwhile, some of your {{ subscriptions_link }} have new updates since you last visited them:{% endblocktrans %}
81 {% for q in user_questions.subscriptions %}
83 <a style="{{ a_style }}" href="{{ app_url }}{{ q.get_absolute_url }}">{{ q.title }}</a>
93 {% if recipient.is_superuser %}
95 flagged_url = html.hyperlink(app_url + reverse('admin_flagged_posts'), str(flagged_count) + ' ' + _('posts'), style=a_style)
97 <p style="{{ p_style }}">
99 {{ flagged_url }} have been marked as flagged.
106 {% textcontent notifications/base_text.html %}
107 {% blocktrans %}This is a brief of what's going on the {{ app_name }} community since our last update.{% endblocktrans %}
109 {% if new_member_count %}
110 {% if show_all_users %}
111 {% blocktrans %}There are {{ new_member_count }} new members in the community. {{ new_member_links }} were the most active so far.{% endblocktrans %}
113 {% blocktrans %}{{ new_member_links }} have joined the {{ app_name }} community.{% endblocktrans %}
117 {% if new_question_count %}
118 {% blocktrans %}{{ new_question_count }} new questions were posted since our last update.{% endblocktrans %}
120 {% if user_questions.interesting %}{% trans "We think you might like the following questions:" %}
121 {% for q in user_questions.interesting %}
126 {% if user_questions.may_help %}
127 {% trans "These new questions didn't get many attention from the community, but we think you may be able to help:" %}
128 {% for q in user_questions.may_help %}
132 {% if user_questions.subscriptions %}
133 {% blocktrans %}Meanwhile, some of your subscriptions have new updates since you last visited them:{% endblocktrans %}
134 {% for q in user_questions.subscriptions %}
141 {% if recipient.is_superuser %}
142 {% blocktrans %}{{ flagged_count }} posts have been marked as flagged.{% endblocktrans %}