use django.contrib.staticfiles everywhere
[mygpo.git] / mygpo / share / templates / share / overview.html
blob04a8e653cf036b44f1cd29c3a5e6b9d3117b7ca8
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 <div class="btn-group">
24 <button class="btn btn-small {% if not subscriptions_token %}disabled btn-primary{% endif %}" onclick="submitForm('subscriptions_public');">{% trans "Public" %}</button>
25 <button class="btn btn-small {% if subscriptions_token %}disabled btn-primary{% endif %}" onclick="submitForm('subscriptions_private');">{% trans "Private" %}</button>
26 </div>
27 </td>
28 <td>
29 <a href="{% url "shared-subscriptions" user.username %}{% if subscriptions_token %}?token={{ subscriptions_token }}{% endif %}">
30 <img src="{% static "22x22/internet-web-browser.png" %}" class="action-button" /></a>
31 <a href="{% url "shared-subscriptions-rss" user.username %}{% if subscriptions_token %}?token={{ subscriptions_token }}{% endif %}">
32 <img height="22" width="22" src="{% static "28x28/feed-icon.png" %}" class="action-button" /></a>
33 <a href="{% url "shared-subscriptions-opml" user.username %}{% if subscriptions_token %}?token={{ subscriptions_token }}{% endif %}">
34 <img src="{% static "22x22/opml-icon.png" %}" class="action-button" /></a>
35 </td>
36 <td>
37 <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>
38 <a class="btn btn-small btn-link" href="{% url "privacy" %}">Privacy Settings</a>
39 </td>
40 </tr>
42 <tr>
43 <td><i class="icon-user icon-large"></i> {% trans "User Page" %}</td>
44 <td>
45 <div class="btn-group">
46 <button class="btn btn-small {% if not userpage_token %}disabled btn-primary{% endif %}" onclick="submitForm('userpage_public');">{% trans "Public" %}</button>
47 <button class="btn btn-small {% if userpage_token %}disabled btn-primary{% endif %}" onclick="submitForm('userpage_private');">{% trans "Private" %}</button>
48 </div>
49 <td>
50 <a href="{% url "user" user.username %}{% if userpage_token %}?token={{ userpage_token }}{% endif %}">
51 <img src="{% static "22x22/internet-web-browser.png" %}" class="action-button" />
52 </a>
53 </td>
54 <td>
55 <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>
56 </td>
57 </tr>
59 <tr>
60 <td><i class="icon-star icon-large"></i> {% trans "Favorites Feed" %}</td>
61 <td>
62 <div class="btn-group">
63 <button class="btn btn-small {% if not favfeed_token %}disabled btn-primary{% endif %}" onclick="submitForm('favfeed_public');">{% trans "Public" %}</button>
64 <button class="btn btn-small {% if favfeed_token %}disabled btn-primary{% endif %}" onclick="submitForm('favfeed_private');">{% trans "Private" %}</button>
65 </div>
66 </td>
67 <td>
68 {% if favfeed_podcast %}
69 <a href="{% podcast_link_target favfeed_podcast %}"><img src="{% static "22x22/internet-web-browser.png" %}" class="action-button" /></a>
70 {% endif %}
71 {% if favfeed_token %}
72 <a href="https://{{ user.username }}:{{ favfeed_token }}@{{ site.domain }}{% url "favorites-feed" user.username %}">
73 <img height="22" width="22" src="{% static "28x28/feed-icon.png" %}" class="action-button" />
74 </a>
75 {% else %}
76 <a href="{% url "favorites-feed" user.username %}">
77 <img height="22" width="22" src="{% static "28x28/feed-icon.png" %}" class="action-button" />
78 </a>
79 {% endif %}
80 </td>
81 <td>
82 <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>
83 <a class="btn btn-small btn-link" href="{% url "favorites" %}">Edit Favorites</a>
84 </td>
85 </tr>
87 </table>
91 <form id="subscriptions_public" method="post" action="{% url "subscriptions-public" %}">
92 {% csrf_token %}
93 </form>
95 <form id="subscriptions_private" method="post" action="{% url "subscriptions-private" %}">
96 {% csrf_token %}
97 </form>
99 <form id="userpage_public" method="post" action="{% url "userpage-public" %}">
100 {% csrf_token %}
101 </form>
103 <form id="userpage_private" method="post" action="{% url "userpage-private" %}">
104 {% csrf_token %}
105 </form>
107 <form id="favfeed_public" method="post" action="{% url "favfeed-public" %}">
108 {% csrf_token %}
109 </form>
111 <form id="favfeed_private" method="post" action="{% url "favfeed-private" %}">
112 {% csrf_token %}
113 </form>
115 {% endblock %}
118 {% block javascript %}
119 <script language="javascript">
120 <!--
121 function submitForm(formid)
123 document.forms[formid].submit();
124 return true;
127 </script>
128 {% endblock %}
132 {% block sidebar %}
134 <div class="well">
135 <h4>{% trans "Private Items" %}</h4>
136 <p>{% trans "Private items are protected by a special token. Only those who know the exact link can access your content" %}</p>
137 </div>
139 {% endblock %}