add "Feed Checker" to podcast publisher page
[mygpo.git] / mygpo / publisher / templates / publisher / home.html
blob6b5e9c027d69cc4c730c0838a48af22580dd31bc
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load podcasts %}
5 {% load menu %}
6 {% block mainmenu %}{{ "/publisher/"|main_menu }}{% endblock %}
7 {% block sectionmenu %}{{ "/publisher/"|section_menu }}{% endblock %}
9 {% block title %}{% trans "Podcasts Published by Me" %}{% endblock %}
11 {% block header %}
12 <h1>{% trans "Podcasts Published by Me" %}</h1>
13 {% endblock %}
16 {% block content %}
18 {% if not podcasts|length_is:"0" %}
19 <table class="list">
21 {% for s in podcasts %}
22 <tr>
23 <td>{{ s|podcast_logo }}</td>
24 <td><a class="listlink" href="{% podcast_link_target s "podcast-publisher-detail" %}">{{ s.display_title|striptags }}</a></td>
25 </tr>
26 {% endfor %}
27 </table>
28 {% endif %}
30 <h2>{% trans "Update your podcasts" %}</h2>
31 <p>{% trans "To update all of your published podcasts automatically, you can request the following URL" %}</p>
32 <pre><a href="{% url "publisher-update" user.username %}?token={{ update_token }}">http://{{ site }}{% url "publisher-update" user.username %}?token={{ update_token }}</a></pre>
33 <form action="{% url "publisher-new-update-token" user.username %}" method="post">
34 {% csrf_token %}
35 <button type="submit" class="btn">{% trans "Create a new token" %}</button>
36 </form>
38 {% if user.is_staff %}
39 <div class="well">
40 <h2>Staff Only</h2>
41 <p>{% trans "Go to the publisher page of any podcast by entering its feed URL" %}</p>
42 <form class="form-inline" action="{% url "podcast-publisher-search" %}" method="post">
43 {% csrf_token %}
44 <div class="input-prepend input-append">
45 <span class="add-on"><i class="icon-link"></i></span><input type="text" class="input-xlarge" name="url" id="id_url" />
46 <button class="btn" type="submit">{% trans "Go" %}</button>
47 </div>
48 </form>
49 </div>
50 {% endif %}
52 {% endblock %}