Merge pull request #793 from gpodder/remove-advertise
[mygpo.git] / mygpo / directory / templates / missing.html
blob33723e424bc12160050d15cf9f0ae735ff15e63b
1 {% extends 'base.html' %}
3 {% load i18n %}
4 {% load podcasts %}
5 {% load charts %}
7 {% load menu %}
8 {% block mainmenu %}{{ "/missing/"|main_menu }}{% endblock %}
9 {% block sectionmenu %}{{ "/missing/"|section_menu }}{% endblock %}
11 {% block title %}{% trans "Missing Podcast" %}{% endblock %}
13 {% block header %}
14 <h1>{% trans "Missing Podcast" %}</h1>
15 {% endblock %}
18 {% block content %}
20 <p>{% blocktrans with site as sitename %}If you're missing a podcast on {{ sitename }}, please enter its feed URL here{% endblocktrans %}</p>
22 <form class="form" method="get" action="{% url "missing-podcast" %}" class="search">
23 <div class="input-group">
24 <span class="input-group-addon"><i class="icon-search"></i></span>
25 <input class="form-control" type="text" placeholder="Podcast Feed URL" name="q" {% if q %}value="{{ q }}"{% endif %} >
26 <span class="input-group-btn">
27 <button class="btn btn-primary" type="submit">{% trans "Check" %}</button>
28 </span>
29 </div>
30 </form>
32 {% if q %}
34 {% if podcast %}
36 <p>{% trans "The podcast already exists" %}</p>
37 <div class="result">
38 {{ podcast|podcast_logo }}
39 {% podcast_group_link podcast %}
40 </div>
42 {% else %}
44 {% if can_add %}
46 <form action="{% url "add-podcast" %}" method="post">
47 {% csrf_token %}
48 <input type="hidden" name="url" value="{{ q }}">
49 <button class="btn btn-primary" type="submit">{% trans "Add Podcast" %}</button>
50 </form>
52 {% endif %}
54 {% endif %}
56 {% endif %}
58 {% endblock %}