add link to userpage settings on Share page
[mygpo.git] / mygpo / share / templates / share / overview.html
blobeb6a0ffe12bff689b664151d3110ed75d4414222
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load podcasts %}
4 {% load static %}
5 {% load menu %}
6 {% block mainmenu %}{{ "/share/"|main_menu }}{% endblock %}
7 {% block sectionmenu %}{{ "/share/"|section_menu }}{% endblock %}
9 {% block title %}{% trans "Sharing" %}{% endblock %}
11 {% block header %}
12 <h1>{% trans "Share" %}</h1>
13 {% endblock %}
16 {% block content %}
18 <table class="list">
20 <tr>
21 <td><i class="icon-rss icon-large"></i> {% trans "Subscriptions" %}</td>
22 <td>
23 {% include "share/components/private-toggle.html" with private=subscriptions_token public_action="subscriptions_public" private_action="subscriptions_private" %}
24 </td>
25 <td>
26 <a href="{% url "shared-subscriptions" user.username %}{% if subscriptions_token %}?token={{ subscriptions_token }}{% endif %}">
27 <img src="{% static "22x22/internet-web-browser.png" %}" class="action-button" /></a>
28 <a href="{% url "shared-subscriptions-rss" user.username %}{% if subscriptions_token %}?token={{ subscriptions_token }}{% endif %}">
29 <img height="22" width="22" src="{% static "28x28/feed-icon.png" %}" class="action-button" /></a>
30 <a href="{% url "shared-subscriptions-opml" user.username %}{% if subscriptions_token %}?token={{ subscriptions_token }}{% endif %}">
31 <img src="{% static "22x22/opml-icon.png" %}" class="action-button" /></a>
32 </td>
33 <td>
34 <button class="btn btn-small btn-link {% if not subscriptions_token %}disabled{% endif %}" {% if subscriptions_token %}type="submit" onclick="submitForm('subscriptions_private');"{% endif %}>{% trans "New Token" %}</button>
35 <a class="btn btn-small btn-link" href="{% url "privacy" %}">Privacy Settings</a>
36 </td>
37 </tr>
39 <tr>
40 <td><i class="icon-user icon-large"></i> {% trans "User Page" %}</td>
41 <td>
42 {% include "share/components/private-toggle.html" with private=userpage_token public_action="userpage_public" private_action="userpage_private" %}
43 <td>
44 <a href="{% url "user" user.username %}{% if userpage_token %}?token={{ userpage_token }}{% endif %}">
45 <img src="{% static "22x22/internet-web-browser.png" %}" class="action-button" />
46 </a>
47 </td>
48 <td>
49 <button class="btn btn-small btn-link {% if not userpage_token %}disabled{% endif %}" {% if userpage_token %}type="submit" onclick="submitForm('userpage_private');"{% endif %}>{% trans "New Token" %}</button>
50 <a class="btn btn-small btn-link" href="{% url "account" %}#profile">
51 {% trans "Settings" %}
52 </a>
53 </td>
54 </tr>
56 <tr>
57 <td><i class="icon-star icon-large"></i> {% trans "Favorites Feed" %}</td>
58 <td>
59 {% include "share/components/private-toggle.html" with private=favfeed_token public_action="favfeed_public" private_action="favfeed_private" %}
60 </td>
61 <td>
62 {% if favfeed_podcast %}
63 <a href="{% podcast_link_target favfeed_podcast %}"><img src="{% static "22x22/internet-web-browser.png" %}" class="action-button" /></a>
64 {% endif %}
65 {% if favfeed_token %}
66 <a href="https://{{ user.username }}:{{ favfeed_token }}@{{ site.domain }}{% url "favorites-feed" user.username %}">
67 <img height="22" width="22" src="{% static "28x28/feed-icon.png" %}" class="action-button" />
68 </a>
69 {% else %}
70 <a href="{% url "favorites-feed" user.username %}">
71 <img height="22" width="22" src="{% static "28x28/feed-icon.png" %}" class="action-button" />
72 </a>
73 {% endif %}
74 </td>
75 <td>
76 <button class="btn btn-small btn-link {% if not favfeed_token %}disabled{% endif %}" {% if favfeed_token %}type="submit" onclick="submitForm('favfeed_private');"{% endif %}>{% trans "New Token" %}</button>
77 <a class="btn btn-small btn-link" href="{% url "favorites" %}">Edit Favorites</a>
78 </td>
79 </tr>
81 </table>
85 <form id="subscriptions_public" method="post" action="{% url "subscriptions-public" %}">
86 {% csrf_token %}
87 </form>
89 <form id="subscriptions_private" method="post" action="{% url "subscriptions-private" %}">
90 {% csrf_token %}
91 </form>
93 <form id="userpage_public" method="post" action="{% url "userpage-public" %}">
94 {% csrf_token %}
95 </form>
97 <form id="userpage_private" method="post" action="{% url "userpage-private" %}">
98 {% csrf_token %}
99 </form>
101 <form id="favfeed_public" method="post" action="{% url "favfeed-public" %}">
102 {% csrf_token %}
103 </form>
105 <form id="favfeed_private" method="post" action="{% url "favfeed-private" %}">
106 {% csrf_token %}
107 </form>
109 {% endblock %}
112 {% block javascript %}
113 <script language="javascript">
114 <!--
115 function submitForm(formid)
117 document.forms[formid].submit();
118 return true;
121 </script>
122 {% endblock %}
126 {% block sidebar %}
128 <div class="well">
129 <h4>{% trans "Private Items" %}</h4>
130 <p>{% trans "Private items are protected by a special token. Only those who know the exact link can access your content" %}</p>
131 </div>
133 {% endblock %}