fix link to removed page on "subscribe" page
[mygpo.git] / mygpo / web / templates / subscribe.html
blob3b829faa9a8654f3c6f784bafb9d245f2cbd7612
1 {% extends "podcast-base.html" %}
2 {% load i18n %}
3 {% load podcasts %}
4 {% load utils %}
5 {% load devices %}
7 {% block title %}{% blocktrans with podcast.title|default:"Unnamed Podcast"|striptags as podcasttitle %}Subscribe to {{ podcasttitle }}{% endblocktrans %}{% endblock %}
9 {% block content %}
11 <h2>{% trans "Subscribe" %}</h2>
12 {% if targets|length %}
13 <form action="{% podcast_link_target podcast "subscribe" %}" method="post" class="form-horizontal">
14 {% csrf_token %}
16 <div class="control-group">
17 <div class="controls">
18 {% for target in targets %}
19 <label class="checkbox">
20 <input type="checkbox" value="{{ target|target_uid }}" name="{{ target|target_uid }}" checked="checked">
21 {% if target|is_list %}
22 {% for t in target %}
23 <a href="{% url "device" t.uid %}">{{ t|device_icon }}{{ t.name|striptags }}</a>
24 {% endfor %}
25 {% else %}
26 <a href="{% url "device" target.uid %}">{{ target|device_icon }}{{ target.name|striptags }}</a>
27 {% endif %}
28 </label>
29 {% endfor %}
30 </div>
31 </div>
33 <div class="form-actions">
34 <button class="btn" type="submit">
35 <i class="icon-plus"></i>
36 {% trans "Subscribe" %}
37 </button>
38 </div>
39 </form>
40 {% else %}
41 <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>
42 <a class="btn btn-success" href="{% url "devices" %}">
43 <i class="icon-plus"></i> {% trans "Create Device" %}
44 </a>
46 {% endif %}
48 {% if not podcast.title %}
49 <div class="alert alert-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>
50 {% endif %}
52 {% endblock %}