1 {% extends
"base.html" %}
6 {% block mainmenu %}{{
"/share/"|main_menu }}{% endblock %}
7 {% block sectionmenu %}{{
"/share/"|section_menu }}{% endblock %}
9 {% block title %}{% trans
"Sharing" %}{% endblock %}
12 <h1>{% trans
"Share" %}
</h1>
21 <td><i class=
"icon-rss icon-large"></i> {% trans
"Subscriptions" %}
</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>
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>
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>
43 <td><i class=
"icon-user icon-large"></i> {% trans
"User Page" %}
</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>
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" />
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>
60 <td><i class=
"icon-star icon-large"></i> {% trans
"Favorites Feed" %}
</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>
68 {% if favfeed_podcast %}
69 <a href=
"{% podcast_link_target favfeed_podcast %}"><img src=
"{% static "22x22/internet-web-browser.png
" %}" class=
"action-button" /></a>
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" />
76 <a href=
"{% url "favorites-feed
" user.username %}">
77 <img height=
"22" width=
"22" src=
"{% static "28x28/feed-icon.png
" %}" class=
"action-button" />
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>
91 <form id=
"subscriptions_public" method=
"post" action=
"{% url "subscriptions-public
" %}">
95 <form id=
"subscriptions_private" method=
"post" action=
"{% url "subscriptions-private
" %}">
99 <form id=
"userpage_public" method=
"post" action=
"{% url "userpage-public
" %}">
103 <form id=
"userpage_private" method=
"post" action=
"{% url "userpage-private
" %}">
107 <form id=
"favfeed_public" method=
"post" action=
"{% url "favfeed-public
" %}">
111 <form id=
"favfeed_private" method=
"post" action=
"{% url "favfeed-private
" %}">
118 {% block javascript %}
119 <script language=
"javascript">
121 function submitForm(formid
)
123 document
.forms
[formid
].submit();
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>