use new style {% url "view" %} template syntax
[mygpo.git] / mygpo / web / templates / suggestions.html
blob4871e863ddbb67c95c76e70bafe314820a804c00
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n %}
4 {% load podcasts %}
6 {% load menu %}
7 {% block mainmenu %}{{ "/suggestions/"|main_menu }}{% endblock %}
8 {% block sectionmenu %}{{ "/suggestions/"|section_menu }}{% endblock %}
10 {% block title %}{% trans "Suggested Podcasts" %}{% endblock %}
12 {% block header %}
13 <h1>{% trans "Suggested Podcasts" %}</h1>
14 {% endblock %}
17 {% block content %}
18 <table class="list podcast_list">
19 {% for podcast in entries %}
20 <tr>
21 <td class="logo">{{ podcast|podcast_logo }}</td>
22 <td>
23 <p class="title">{% podcast_group_link podcast %}</p>
24 <p class="description">{{ podcast.description|striptags|truncatewords:"12" }}</p>
25 </td>
26 <td>
27 <a class="btn btn-success btn-small" href="{% podcast_link_target podcast "subscribe" %}">
28 <i class="icon-ok"></i> {% trans "Subscribe" %}
29 </a>
30 </td>
31 <td>
32 <form action="{% podcast_link_target podcast "suggestions-blacklist" %}" style="display: inline;" >
33 {% csrf_token %}
34 <button class="btn btn-danger btn-small" type="submit">
35 <i class="icon-ban-circle"></i> {% trans "No Interest" %}
36 </button>
37 </form>
38 </td>
39 </tr>
40 {% empty %}
41 <tr>
42 <td colspan="3">
43 {% trans "No Suggestions Yet" %}
44 </td>
45 </tr>
46 {% endfor %}
47 </table>
49 {% if entries %}
50 <a class="btn" href="{% url "suggestions-opml" 15 "opml" %}">
51 <i class="icon-download"></i>
52 {% trans "Download OPML" %}
53 </a>
54 {% endif %}
56 {% endblock %}
59 {% block javascript %}
61 <script language="javascript">
62 <!--
63 function submitForm(formid)
65 document.forms[formid].submit();
66 return true;
68 -->
69 </script>
71 {% endblock %}