]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/digest.html
initial import
[osqa.git] / forum / skins / default / templates / notifications / digest.html
1 {% extends "email_base.html" %}\r
2 {% load i18n %}\r
3 {% load humanize %}\r
4 {% load extra_tags %}\r
5 \r
6 {% block content %}\r
7     <p>{% trans "Hello" %} {{ user.username }},</p>\r
8 \r
9     <p>{% blocktrans with settings.APP_SHORT_NAME as app_title %}\r
10     This is the {{ digest_type }} activity digest for {{ app_title }}\r
11     {% endblocktrans %}</p>\r
12 \r
13     {% if new_users %}\r
14         <h3>\r
15         {% 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 %}\r
16             {{ nusers_count }} new user{{ nusers_count_pluralize }} joined the {{ app_title }} community:\r
17         {% endblocktrans %}\r
18         </h3>\r
19         <ul>\r
20         {% for nuser in new_users %}\r
21             <li><a href="{{ settings.APP_URL }}{{ nuser.get_profile_url }}">{{ nuser.username }}</a></li>        \r
22         {% endfor %}\r
23         </ul>\r
24     {% endif %}\r
25 \r
26     {% if activity_in_subscriptions %}\r
27         <h3>\r
28         {% blocktrans with activity_in_subscriptions|length as question_count and activity_in_subscriptions|length|pluralize as question_count_pluralize %}\r
29             {{ question_count }} of your subscriptions have updates:\r
30         {% endblocktrans %}\r
31         </h3>\r
32         <ul>\r
33         {% for record in activity_in_subscriptions %}\r
34             <li>\r
35             {% trans "On question " %}<a href="{{ settings.APP_URL }}{{ record.question.get_absolute_url }}">{{ question_title }}" %}</a> -\r
36             {% if record.activity.answers %}\r
37                 {% blocktrans with record.activity.answers|length as answer_count and record.activity.answers|length|pluralize as answer_count_pluralize %}\r
38                     {{ answer_count }} new answer{{ answer_count_pluralize }}\r
39                 {% endblocktrans %},\r
40             {% endif %}\r
41             {% if record.activity.comments %}\r
42                 {% blocktrans with record.activity.comments|length as comment_count and record.activity.comments|length|pluralize as comment_count_pluralize %}\r
43                     {{ comment_count }} new comment{{ comment_count_pluralize }}\r
44                 {% endblocktrans %}\r
45                 {% if own_comments_only %}\r
46                     {% trans "on your own post(s)" %}\r
47                 {% endif %},\r
48             {% endif %}\r
49             {% if record.accepted %}\r
50                 {% trans "an answer was accepted" %}\r
51             {% endif %}\r
52             </li>\r
53         {% endfor %}\r
54         </ul>\r
55     {% endif %}\r
56 \r
57     {% if new_questions %}\r
58         <h3>\r
59         {% blocktrans with new_questions|length as question_count and new_questions|length|pluralize as question_count_pluralize%}\r
60             {{ question_count }} new question{{ question_count_pluralize }}\r
61         {% endblocktrans %}\r
62         {% if watched_tags_only %}\r
63             {% trans "matching your interesting tags" %}\r
64         {% endif %}\r
65         {% trans "posted :" %}\r
66         </h3>\r
67         <ul>\r
68         {% for question in new_questions %}\r
69             <li>\r
70                 <a href="{{ settings.APP_URL }}{{ question.get_absolute_url }}">{{ question.title }}</a> -\r
71                 {% blocktrans with question.author.username as author_name and question.added_at|date:"D d M Y" as question_time %}\r
72                     Posted by {{ author_name }} in {{ question_time }}\r
73                 {% endblocktrans %}\r
74             </li>\r
75         {% endfor %}\r
76         </ul>\r
77     {% endif %}\r
78 \r
79 {% endblock %}