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 {% include
"share/components/private-toggle.html" with private=subscriptions_token
public_action=
"subscriptions_public" private_action=
"subscriptions_private" %}
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>
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>
40 <td><i class=
"icon-user icon-large"></i> {% trans
"User Page" %}
</td>
42 {% include
"share/components/private-toggle.html" with private=userpage_token
public_action=
"userpage_public" private_action=
"userpage_private" %}
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" />
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" %}
57 <td><i class=
"icon-star icon-large"></i> {% trans
"Favorites Feed" %}
</td>
59 {% include
"share/components/private-toggle.html" with private=favfeed_token
public_action=
"favfeed_public" private_action=
"favfeed_private" %}
62 {% if favfeed_podcast %}
63 <a href=
"{% podcast_link_target favfeed_podcast %}"><img src=
"{% static "22x22/internet-web-browser.png
" %}" class=
"action-button" /></a>
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" />
70 <a href=
"{% url "favorites-feed
" user.username %}">
71 <img height=
"22" width=
"22" src=
"{% static "28x28/feed-icon.png
" %}" class=
"action-button" />
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>
85 <form id=
"subscriptions_public" method=
"post" action=
"{% url "subscriptions-public
" %}">
89 <form id=
"subscriptions_private" method=
"post" action=
"{% url "subscriptions-private
" %}">
93 <form id=
"userpage_public" method=
"post" action=
"{% url "userpage-public
" %}">
97 <form id=
"userpage_private" method=
"post" action=
"{% url "userpage-private
" %}">
101 <form id=
"favfeed_public" method=
"post" action=
"{% url "favfeed-public
" %}">
105 <form id=
"favfeed_private" method=
"post" action=
"{% url "favfeed-private
" %}">
112 {% block javascript %}
113 <script language=
"javascript">
115 function submitForm(formid
)
117 document
.forms
[formid
].submit();
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>