|
1 {% extends "site/layout/base_workspace.html" %} |
|
2 {% load com %} |
|
3 {% load i18n %} |
|
4 {% load local_perms %} |
|
5 |
|
6 {% block title %} |
|
7 {% blocktrans %}Notifications{% endblocktrans %} |
|
8 {% endblock %} |
|
9 |
|
10 {% block main %} |
|
11 {% get_local_perm request can_manage_workspace as can_manage_workspace %} |
|
12 <script type="text/javascript"> |
|
13 <!-- |
|
14 tb_conf['current_tab'] = 'notifications'; |
|
15 --> |
|
16 </script> |
|
17 |
|
18 <div id="notifications" class="tab-meta"> |
|
19 |
|
20 <form id="notifications" enctype="multipart/form-data" action="." method="post"> |
|
21 |
|
22 <h2>{% blocktrans %}Feeds{% endblocktrans %}</h2> |
|
23 |
|
24 <h3>{% blocktrans %}Public feed{% endblocktrans %} (<a title="{% blocktrans %}Help{% endblocktrans %}" target="_blank" href="{% url help %}#public_private_feed">?</a>)</h3> |
|
25 |
|
26 <div> |
|
27 <a href="{% url public-feed %}" title="{% blocktrans %}Public feed for workspace{% endblocktrans %}"> |
|
28 <img style="vertical-align:middle;" src="{{ MEDIA_URL }}/img/xml.gif" /> {{SITE_URL}}{% url public-feed %} |
|
29 </a> |
|
30 </div> |
|
31 {% blocktrans %}This is the public feed for the workspace.{% endblocktrans %} |
|
32 |
|
33 {% if can_manage_workspace %} |
|
34 <h3>{% blocktrans %}Private feed{% endblocktrans %} (<a title="{% blocktrans %}Help{% endblocktrans %}" target="_blank" href="{% url help %}#public_private_feed">?</a>)</h3> |
|
35 |
|
36 {% if CONF.private_feed_key %} |
|
37 <div> |
|
38 <a href="{% url private-feed CONF.private_feed_key %}" title="{% blocktrans %}Private feed for workspace{% endblocktrans %}"> |
|
39 <img style="vertical-align:middle;" src="{{ MEDIA_URL }}/img/xml.gif" /> {{SITE_URL}}{% url private-feed CONF.private_feed_key %} |
|
40 </a> |
|
41 </div> |
|
42 {% blocktrans %}This is the private feed for the workspace. Don't share this address with others unless you want them to see all activities on the workspace.{% endblocktrans %} |
|
43 <br /> |
|
44 <input name="reset" type="submit" id="reset" value="{% blocktrans %}Reset private feed url{% endblocktrans %}"/> |
|
45 |
|
46 {% else %} |
|
47 <div> |
|
48 <input name="activate" type="submit" id="activate" value="{% blocktrans %}Activate private feed{% endblocktrans %}"/> |
|
49 </div> |
|
50 {% blocktrans %}The private feed for this workspace is not yet activated.{% endblocktrans %} |
|
51 {% endif %} |
|
52 {% endif %} |
|
53 |
|
54 <h2>{% blocktrans %}Email notifications{% endblocktrans %}</h2> |
|
55 |
|
56 <input type="checkbox" id="notify_check" class="check" name="notify-check" {% if notify_check %}checked="checked"{% endif %}/> |
|
57 {% blocktrans %}Subscribe to workspace notifications{% endblocktrans %} |
|
58 <br /> |
|
59 <input type="checkbox" id="own_check" class="check" name="commentsown-check" {% if own_check %}checked="checked"{% endif %}/> |
|
60 {% blocktrans %}Subscribe to all comments/replies notifications in discussions where you have participated{% endblocktrans %} |
|
61 |
|
62 <script type="text/javascript"> |
|
63 <!-- |
|
64 $(function() { |
|
65 $(".check").click(function(){ |
|
66 notify_check = $("#notify_check").attr('checked'); |
|
67 own_check = $("#own_check").attr('checked'); |
|
68 |
|
69 $.post('.', |
|
70 { |
|
71 'notify_check':notify_check, |
|
72 'own_check':own_check |
|
73 }, |
|
74 function(data){ |
|
75 // window.location = window.location; |
|
76 }); |
|
77 |
|
78 }); |
|
79 |
|
80 }) ; |
|
81 --> |
|
82 </script> |
|
83 |
|
84 </form> |
|
85 </div> |
|
86 |
|
87 |
|
88 {% endblock %} |
|
89 |