more adaptations to Bootstrap 3
[mygpo.git] / mygpo / web / templates / privacy.html
blob2dcf076f4e1320a9a565f57216a28aec6405e46e
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 header %}
12 <h1>{% trans "Privacy Settings" %}</h1>
13 {% endblock %}
16 {% block content %}
18 <p>{% blocktrans %}{{ domain }} distinguishes between public and private subscriptions.{% endblocktrans %}
19 <ul>
20 <li>{% blocktrans %}<strong>Public</strong> subscriptions are included in your <a href="/share/">shared podcasts</a> and our anonymized public statistics.{% endblocktrans %}</li>
21 <li>{% blocktrans %}<strong>Private</strong> subscriptions do neither show up in your list of shared podcasts, nor are considered in our statistics.{% endblocktrans %}</li>
22 </ul>
23 </p>
25 <h2>{% trans "Subscriptions" %}</h2>
26 <table class="list">
27 <tr>
28 <td class="logo"></td>
29 <td>{% trans "Default for new subscriptions" %}</td>
30 <td>
31 <form name="default_public"
32 method="post"
33 action="{% url "privacy_default_public" %}">
34 {% csrf_token %}
35 </form>
36 <form name="default_private"
37 method="post"
38 action="{% url "privacy_default_private" %}">
39 {% csrf_token %}
40 </form>
41 {% include "share/components/private-toggle.html" with private=private_subscriptions public_action="default_public" private_action="default_private" %}
42 </td>
43 </tr>
45 {% for podcast, private in subscriptions %}
46 <tr>
47 <td class="logo">{{ podcast|podcast_logo }}</td>
48 <td>{% podcast_group_link podcast %}</td>
49 <td>
50 <form name="podcast_private_{{ podcast.get_id }}"
51 method="post"
52 action="{% url "privacy_podcast_private" podcast.get_id %}">
53 {% csrf_token %}
54 </form>
55 <form name="podcast_public_{{ podcast.get_id }}"
56 method="post"
57 action="{% url "privacy_podcast_public" podcast.get_id %}">
58 {% csrf_token %}
59 </form>
60 {% include "share/components/private-toggle.html" with private=private public_action="podcast_public_" private_action="podcast_private_" param=podcast.get_id %}
61 </td>
62 </tr>
63 {% endfor %}
64 </table>
67 {% if included_subscriptions %}
68 <h2>{% trans "Public Subscriptions" %}</h2>
69 <table class="list">
71 {% for podcast in included_subscriptions %}
72 <tr>
73 <td class="logo">{{ podcast|podcast_logo }}</td>
74 <td>{% podcast_group_link podcast %}</td>
75 <td>
76 <form method="post" action="{% url "privacy_podcast_private" podcast.get_id %}">
77 {% csrf_token %}
78 <button class="btn btn-default btn-sm" type="submit">
79 <i class="icon-eye-close"></i> {% trans "Make Private" %}
80 </button>
81 </form>
82 </td>
83 </tr>
84 {% endfor %}
85 </table>
86 {% endif %}
89 {% if excluded_subscriptions %}
90 <h2>{% trans "Private Subscriptions" %}</h3>
91 <table class="list">
93 {% for podcast in excluded_subscriptions %}
94 <tr>
95 <td class="logo">{{ podcast|podcast_logo }}</td>
96 <td>{% podcast_group_link podcast %}</td>
97 <td>
98 <form method="post" action="{% url "privacy_podcast_public" podcast.get_id %}">
99 {% csrf_token %}
100 <button class="btn btn-default btn-sm" type="submit">
101 <i class="icon-eye-open"></i> {% trans "Make Public" %}
102 </button>
103 </form>
104 </tr>
105 {% endfor %}
106 </table>
107 {% endif %}
109 {% endblock %}
113 {% block javascript %}
114 <script language="javascript">
115 <!--
116 function submitForm(formid)
118 document.forms[formid].submit();
119 return true;
122 </script>
123 {% endblock %}