[Tests] fix number of expected queries
[mygpo.git] / mygpo / web / templates / suggestions.html
blobc679cee8ccab2207f50a5ec3e09ae182a892c957
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load podcasts %}
5 {% load menu %}
6 {% block mainmenu %}{{ "/suggestions/"|main_menu }}{% endblock %}
7 {% block sectionmenu %}{{ "/suggestions/"|section_menu }}{% endblock %}
9 {% block title %}{% trans "Suggested Podcasts" %}{% endblock %}
11 {% block header %}
12 <h1>{% trans "Suggested Podcasts" %}</h1>
13 {% endblock %}
16 {% block content %}
18 <div class="podcasts">
20 {% for podcast in entries %}
21 <div class="podcast">
23 <div class="logo">{{ podcast|podcast_logo_big }}</div>
25 <div class="title">
26 {% podcast_group_link podcast %}
27 </div>
29 <div class="actions">
30 <a class="btn btn-success btn-sm" href="{% podcast_link_target podcast "subscribe" %}">
31 <i class="icon-ok"></i>&nbsp;{% trans "Subscribe" %}
32 </a>
33 <form action="{% podcast_link_target podcast "suggestions-blacklist" %}">
34 {% csrf_token %}
35 <button class="btn btn-danger btn-sm" type="submit">
36 <i class="icon-ban-circle"></i>&nbsp;{% trans "No Interest" %}
37 </button>
38 </form>
39 </div>
41 <div class="description">
42 {{ podcast.description|truncatewords:100 }}
43 </div>
45 </div>
46 {% empty %}
47 <p>{% trans "No Suggestions Yet" %}</p>
48 {% endfor %}
49 </div>
51 {% if entries %}
52 <a class="btn" href="{% url "suggestions-opml" 15 "opml" %}">
53 <i class="icon-download"></i>
54 {% trans "Download OPML" %}
55 </a>
56 {% endif %}
58 {% endblock %}
61 {% block javascript %}
63 <script language="javascript">
64 <!--
65 function submitForm(formid)
67 document.forms[formid].submit();
68 return true;
70 -->
71 </script>
73 {% endblock %}