Django-magic to prevent cross-site request forgery for POST requests
[mygpo.git] / mygpo / web / templates / privacy.html
blob401cc64c75ad7d1f693bcf02c40f4b41d84a82de
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load podcasts %}
5 {% load menu %}
6 {% block mainmenu %}{{ "/account/"|main_menu }}{% endblock %}
7 {% block sectionmenu %}{{ "/account/privacy"|section_menu }}{% endblock %}
9 {% block title %}{% trans "Privacy settings" %}{% endblock %}
11 {% block content %}
12 <h1>{% trans "Privacy settings" %}</h1>
14 <p>
15 {% if public_subscriptions %}
16 {% blocktrans %}We include anonmyized data about the following subscriptions in our public statistics. You can exclude specific podcasts or <a href="/account/privacy?private_subscriptions">all at once</a>.{% endblocktrans %}
17 <table>
18 <tr>
19 <th></th>
20 <th>{% trans "Podcast" %}</th>
21 <th>{% trans "Mark private" %}</th>
22 </tr>
24 {% for podcast in included_subscriptions %}
25 <tr>
26 <td>{{ podcast|podcast_logo }}</td>
27 <td><a href="/podcast/{{ podcast.id }}">{{ podcast.title|striptags|default:"Unnamed Podcast" }}</a></td>
28 <td><a href="/account/privacy?exclude={{ podcast.id }}"><img src="/media/unsubscribe.png" alt="{% trans "Mark private" %}" /></a></td>
29 </tr>
30 {% endfor %}
31 </table>
33 {% if excluded_subscriptions %}
34 <h3>{% trans "Already excluded" %}</h3>
35 <table>
36 <tr>
37 <th></th>
38 <th>{% trans "Podcast" %}</th>
39 <th>{% trans "Mark public" %}</th>
40 </tr>
42 {% for podcast in excluded_subscriptions %}
43 <tr>
44 <td>{{ podcast|podcast_logo }}</td>
45 <td><a href="/podcast/{{ podcast.id }}">{{ podcast.title|striptags|default:"Unnamed Podcast" }}</a></td>
46 <td><a href="/account/privacy?include={{ podcast.id }}"><img src="/media/edit-undo.png" alt="{% trans "Mark private" %}" /></a></td>
47 </tr>
48 {% endfor %}
49 </table>
50 {% endif %}
51 {% else %}
52 {% blocktrans %}We don't include your subscriptions in our public statistics. <a href="/account/privacy?public_subscriptions">Include my data.</a>{% endblocktrans %}
53 {% endif %}
54 </p>
55 {% endblock %}