Django-magic to prevent cross-site request forgery for POST requests
[mygpo.git] / mygpo / web / templates / share.html
blob2be611a150a6bd0494110ff36e8a769cffa1265f
1 {% extends "base.html" %}
2 {% load i18n %}
4 {% load menu %}
5 {% block mainmenu %}{{ "/account/"|main_menu }}{% endblock %}
6 {% block sectionmenu %}{{ "/share/"|section_menu }}{% endblock %}
8 {% block title %}{% trans "Sharing" %}{% endblock %}
10 {% block content %}
11 <h1>{% trans "Share your subscriptions" %}</h1>
13 <p>{% trans "To let others know which podcasts you are listening to, you can point them to the following URL." %}</p>
14 {% if token %}
15 <div class="info"><a href="/user/{{ user.username }}/subscriptions?token={{ token }}">http://{{ site.domain }}/user/{{ user.username }}/subscriptions?token={{ token }}</a></div>
16 <p>{% blocktrans %}Only those who know the exact link above can see your subscriptions, but you can <a href="/share/?public_subscriptions">make it public</a> so everyone can see it.{% endblocktrans %}</p>
17 <p>{% blocktrans %}If you gave your link to the wrong people, you can <a href="/share/?private_subscriptions">create a new one</a> - the old one will get invalid then.{% endblocktrans %}</p>
19 {% else %}
21 <div class="info"><a href="/user/{{ user.username }}/subscriptions">http://{{ site.domain }}/user/{{ user.username }}/subscriptions</a></div>
22 <p>{% blocktrans %}You don't want everybody to see your subscriptions? <a href="/share/?private_subscriptions">Make them private</a> so that you can give the link to people you trust.{% endblocktrans %}</p>
23 {% endif %}
25 <hr>
27 {% endblock %}