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