X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..67d1c37bf8bb05cf1b3ebebf88b6ac5d3b5b07a2:/forum/skins/default/templates/notifications/digest.html?ds=sidebyside diff --git a/forum/skins/default/templates/notifications/digest.html b/forum/skins/default/templates/notifications/digest.html index 2c98069..e986d4b 100644 --- a/forum/skins/default/templates/notifications/digest.html +++ b/forum/skins/default/templates/notifications/digest.html @@ -1,79 +1,145 @@ -{% extends "email_base.html" %} -{% load i18n %} -{% load humanize %} -{% load extra_tags %} - -{% block content %} -
{% trans "Hello" %} {{ user.username }},
- -{% blocktrans with settings.APP_SHORT_NAME as app_title %} - This is the {{ digest_type }} activity digest for {{ app_title }} - {% endblocktrans %}
- - {% if new_users %} -+ {% blocktrans %} + This is a brief of what's going on the {{ app_name }} community since our last update. + {% endblocktrans %} +
+ + {% if new_member_count %} ++ {% if show_all_users %} + {% blocktrans %} + There are {{ new_member_count }} new members in the community. {{ new_member_links }} were the most active so far. + {% endblocktrans %} + {% else %} + {% blocktrans %} + {{ new_member_links }} have joined the {{ app_name }} community. + {% endblocktrans %} + {% endif %} + {% endif %} +
+ + {% if new_question_count %} + ++ {% blocktrans %} + {{ new_question_count }} {{ new_questions_link }} were posted since our last update. + {% endblocktrans %} +
+ + {% if user_questions.interesting %} ++ {% trans "We think you might like the following questions:" %} +
++ {% trans "These new questions didn't get many attention from the community, but we think you may be able to help:" %} +
++ {% blocktrans %}Meanwhile, some of your {{ subscriptions_link }} have new updates since you last visited them:{% endblocktrans %} +
++ {% blocktrans %} + {{ flagged_url }} have been marked as flagged. + {% endblocktrans %} +
+ {% endif %} + + {% endhtmlcontent %} + +{% textcontent notifications/base_text.html %} +{% blocktrans %}This is a brief of what's going on the {{ app_name }} community since our last update.{% endblocktrans %} + +{% if new_member_count %} +{% if show_all_users %} +{% blocktrans %}There are {{ new_member_count }} new members in the community. {{ new_member_links }} were the most active so far.{% endblocktrans %} +{% else %} +{% blocktrans %}{{ new_member_links }} have joined the {{ app_name }} community.{% endblocktrans %} +{% endif %} +{% endif %} + +{% if new_question_count %} +{% blocktrans %}{{ new_question_count }} new questions were posted since our last update.{% endblocktrans %} + +{% if user_questions.interesting %}{% trans "We think you might like the following questions:" %} +{% for q in user_questions.interesting %} +* {{ q.title }} +{% endfor %} +{% endif %} + +{% if user_questions.may_help %} +{% trans "These new questions didn't get many attention from the community, but we think you may be able to help:" %} +{% for q in user_questions.may_help %} +* {{ q.title }} +{% endfor %} + +{% if user_questions.subscriptions %} +{% blocktrans %}Meanwhile, some of your subscriptions have new updates since you last visited them:{% endblocktrans %} +{% for q in user_questions.subscriptions %} +* {{ q.title }} +{% endfor %} +{% endif %} +{% endif %} +{% endif %} + +{% if recipient.is_superuser %} +{% blocktrans %}{{ flagged_count }} posts have been marked as flagged.{% endblocktrans %} +{% endif %} +{% endtextcontent %} +{% endemail %}