]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/subscriptions.html
Adds the option to enable/disable email digests and makes small tweak on the handling...
[osqa.git] / forum / skins / default / templates / users / subscriptions.html
1 {% extends "user.html" %}\r
2 <!-- user_subscriptions.html -->\r
3 {% load i18n %}\r
4 {% load extra_tags %}\r
5 {% load humanize %}\r
6 \r
7 {% block usercontent %}\r
8     <h2>{% trans "Notifications and subscription settings" %}</h2>\r
9     <p class="message">\r
10         {% blocktrans %}\r
11         Here you can decide which types of notifications you wish to receive, and their frequency.<br />\r
12         {% endblocktrans %}\r
13         {% if notificatons_on %}\r
14         {% blocktrans %}\r
15         Currently you have notifications enabled. You can always stop all notifications without losing your settings and restart them afterwards.<br />\r
16         {% endblocktrans %}\r
17         {% else %}\r
18         {% blocktrans %}\r
19         Currently you have notifications disabled. You can enable them by clicking on the <strong>Start notifications</strong> button below.<br />\r
20         {% endblocktrans %}\r
21         {% endif %}\r
22     </p>\r
23     <div class='inline-block'>\r
24     <form method="POST">\r
25         <table class="form-as-table">\r
26             <tr>\r
27                 <td colspan="2">\r
28                     <strong>{% trans "Notify me when:" %}</strong>\r
29                 </td>\r
30             </tr>\r
31             <tr>\r
32                 <td>{% trans "A new member joins" %}</td>\r
33                 <td>{{ form.member_joins }}</td>\r
34             </tr>\r
35             <tr>\r
36                 <td>{% trans "A new question is posted" %}</td>\r
37                 <td>{{ form.new_question }}</td>\r
38             </tr>\r
39             <tr>\r
40                 <td>{% trans "A new question matching my interesting tags is posted" %}</td>\r
41                 <td>{{ form.new_question_watched_tags }}</td>\r
42             </tr>\r
43             <tr>\r
44                 <td>{% trans "There's an update on one of my subscriptions" %}</td>\r
45                 <td >{{ form.subscribed_questions }}</td>\r
46             </tr>\r
47         </table>\r
48         <p>&nbsp;</p>\r
49         <table class="form-as-table check-table">\r
50             <tr>\r
51                 <td colspan="3">\r
52                     <strong>{% trans "Auto subscribe me to:" %}</strong>\r
53                 </td>\r
54             </tr>\r
55             <tr>\r
56                 <td>\r
57                     {{ form.questions_asked }}{% trans "Questions I ask" %}\r
58                 </td>\r
59                 <td>\r
60                     {{ form.questions_answered }}{% trans "Questions I answer" %}\r
61                 </td>\r
62                 <td>\r
63                     {{ form.questions_commented }}{% trans "Questions I comment" %}\r
64                 </td>\r
65             </tr>\r
66             <tr>                \r
67                 <td>\r
68                     {{ form.questions_viewed }}{% trans "Questions I view" %}\r
69                 </td>\r
70                 <td>\r
71                     {{ form.all_questions_watched_tags }}{% trans "All questions matching my interesting tags" %}\r
72                 </td>\r
73                 <td>\r
74                     {{ form.all_questions }}{% trans "All questions" %}\r
75                 </td>\r
76             </tr>\r
77         </table>\r
78         <p>&nbsp;</p>\r
79         <table class="form-as-table check-table">\r
80             <tr>\r
81                 <td colspan="2">\r
82                     <strong>{% trans "On my subscriptions, notify me when:" %}</strong>\r
83                 </td>\r
84             </tr>\r
85             <tr>\r
86                 <td>\r
87                     {{ form.notify_answers }}{% trans "An answer is posted" %}\r
88                 </td>\r
89                 <td>\r
90                     {{ form.notify_comments_own_post }}{% trans "A comment on one of my posts is posted" %}\r
91                 </td>\r
92             </tr>\r
93             <tr>\r
94                 <td>\r
95                     {{ form.notify_comments }}{% trans "A comment is posted" %}\r
96                 </td>\r
97                 <td>\r
98                     {{ form.notify_accepted }}{% trans "An answer is accepted" %}\r
99                 </td>\r
100             </tr>\r
101         </table>\r
102         <p>&nbsp;</p>\r
103         <table class="form-as-table check-table">\r
104             <tr>\r
105                 <td>\r
106                     <strong>{% trans "More:" %}</strong>\r
107                 </td>\r
108             </tr>\r
109             <tr>\r
110                 <td>\r
111                     {{ form.notify_reply_to_comments }}{% trans "Notify me when someone replies to one of my comments on any post using the <pre>@username</pre> notation" %}\r
112                 </td>\r
113             </tr>\r
114             <tr>\r
115                 <td>\r
116                     {{ form.send_digest }}{% trans "Send me the daily digest with information about the site activity" %}\r
117                 </td>\r
118             </tr>\r
119         </table>\r
120         <div class="submit-row">\r
121             <input type="submit" class="submit" name="save" value="{% trans "Update" %}"/>\r
122             {% if notificatons_on %}\r
123             <input type="submit" class="submit" name="notswitch" value="{% trans "Stop notifications" %}"/>\r
124             {% else %}\r
125             <input type="submit" class="submit" name="notswitch" value="{% trans "Start notifications" %}"/>            \r
126             {% endif %}\r
127         </div>\r
128         {{ form.user }}\r
129     </form>\r
130     </div>\r
131 {% endblock %}\r
132 <!-- end user_subscriptions.html -->\r