|
0
|
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> |
|
12
|
55 |
<div> |
|
|
56 |
<input type="checkbox" id="workspace_notify_check" class="check" {% if workspace_notify_check %}checked="checked"{% endif %}/> |
|
0
|
57 |
{% blocktrans %}Subscribe to workspace notifications{% endblocktrans %} |
|
12
|
58 |
</div> |
|
|
59 |
<div id="own_notify_check_container"> |
|
|
60 |
<input type="checkbox" id="own_notify_check" class="check" {% if own_notify_check %}checked="checked"{% endif %}/> |
|
|
61 |
{% blocktrans %}Subscribe to all replies notifications in discussions where you have participated{% endblocktrans %} |
|
|
62 |
</div> |
|
0
|
63 |
<script type="text/javascript"> |
|
|
64 |
<!-- |
|
12
|
65 |
|
|
|
66 |
$(function() { |
|
|
67 |
adapt_own_check_visibility = function() { |
|
|
68 |
if ($("#workspace_notify_check").attr('checked')) |
|
|
69 |
$("#own_notify_check_container").hide() ; |
|
|
70 |
else |
|
|
71 |
$("#own_notify_check_container").show() ; |
|
|
72 |
} ; |
|
|
73 |
$(".check").click(function(){ |
|
|
74 |
checked = $(this).attr('checked'); |
|
|
75 |
id = $(this).attr('id') ; |
|
|
76 |
post_data = {'notif_id': id} ; |
|
|
77 |
post_data[id] = checked ; |
|
|
78 |
$.post('.', post_data, function(data){}); |
|
|
79 |
|
|
|
80 |
adapt_own_check_visibility(); |
|
|
81 |
}); |
|
|
82 |
adapt_own_check_visibility() ; |
|
|
83 |
}) ; |
|
0
|
84 |
--> |
|
|
85 |
</script> |
|
|
86 |
|
|
|
87 |
</form> |
|
|
88 |
</div> |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
{% endblock %} |
|
|
92 |
|