[Tests] track coverage of templates
[mygpo.git] / mygpo / web / templates / podcast-history.html
blob16fe426ba82ea01833c463e749836385abd1e320
1 {% extends "podcast-base.html" %}
2 {% load i18n %}
3 {% load humanize %}
4 {% load episodes %}
5 {% load podcasts %}
6 {% load devices %}
7 {% load charts %}
8 {% load facebook %}
9 {% load google %}
10 {% load utils %}
12 {% load menu %}
13 {% block mainmenu %}{{ "/podcast/"|main_menu }}{% endblock %}
14 {% block sectionmenu %}
15 {% if podcast.title %}
16 {{ "/podcast/"|section_menu:podcast.title }}
17 {% else %}
18 {{ "/podcast/"|section_menu:"Unnamed Podcast" }}
19 {% endif %}
20 {% endblock %}
22 {% block head %}
23 {{ podcast|opengraph_podcast }}
24 {% google_plus_one_head %}
25 {% endblock %}
27 {% block title %}{{ podcast.title|default:"Unnamed Podcast"|striptags }}{% endblock %}
30 {% block content %}
32 <h4>{% trans "Subscription History" %}</h4>
33 <table class="list">
34 {% for s in history %}
35 <tr>
36 <td><abbr title="{{ s.timestamp }}">{{ s.timestamp|naturalday }}</abbr></td>
37 <td>{{ s|podcast_status_icon }}</td>
38 <td>
39 {% if s.device %}
40 <a href="{% url "device" s.device.uid %}">{{ s.device|device_icon }} {{ s.device.name|striptags }}</a>
41 {% endif %}
42 </td>
43 </tr>
44 {% empty %}
45 <tr>
46 <td colspan="3" class="empty">
47 {% trans "no history yet" %}
48 </td>
49 </tr>
50 {% endfor %}
51 </table>
53 {% endblock %}