Django-magic to prevent cross-site request forgery for POST requests
[mygpo.git] / mygpo / web / templates / subscribe.html
blobbf480909b2e8cfaf1bffca17e4dfd58290f44178
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load podcasts %}
5 {% load menu %}
6 {% block mainmenu %}{{ "/podcast/"|main_menu }}{% endblock %}
7 {% block sectionmenu %}{{ "/podcast/"|section_menu:podcast.title }}{% endblock %}
9 {% block title %}{% blocktrans with podcast.title|default:"Unnamed Podcast"|striptags as podcasttitle %}Subscribe to {{ podcasttitle }}{% endblocktrans %}{% endblock %}
11 {% block content %}
12 {% if podcast.logo_url %}
13 <div id="podcastlogo">{{ podcast|podcast_logo_big }}</div>
14 {% endif %}
15 <h1>
16 {% if podcast.title %}
17 {% blocktrans with podcast.title|striptags as podcasttitle %}Subscribe to {{podcasttitle }}{% endblocktrans %}
18 {% else %}
19 {% trans "Subscribe to this podcast" %}
20 {% endif %}
21 </h1>
22 <a href="{{ podcast.url }}" class="URL">{{ podcast.url }}</a>
24 {% if podcast.description %}
25 <p class="description">{{ podcast.description|striptags }}</p>
26 {% endif %}
27 <hr/>
29 <h2>{% trans "Add a podcast" %}</h2>
30 {% if can_subscribe %}
31 <form action="" method="post">
32 {% csrf_token %}
33 {{ form.as_p }}
34 <input type="submit" value="{% trans "Subscribe" %}" />
35 </form>
36 <p style="padding-top: 20px;"><a href="/podcast/{{ podcast.id }}">{% trans "Back to the podcast page" %}</a></p>
37 {% else %}
38 <p>{% trans "You can't subscribe to this podcast, because you don't have any devices (on which you don't have subscribed to the podcast already." %}</p>
39 <p>{% blocktrans %}If you're new here, you should start by reading our <a href="/online-help/">introduction</a>.{% endblocktrans %}</p>
40 {% endif %}
42 {% if not podcast.title %}
43 <div class="info"><strong>{% trans "Why Unnamed Podcast?" %}</strong> {% trans "Because we display names after we have fetched the information form the feed -- and this may take some time. Until this is completed, the podcast will simply be called this way." %}</div>
44 {% endif %}
46 {% endblock %}