redesign podcast, episode subtitle line
[mygpo.git] / mygpo / publisher / templates / publisher / episode.html
blob4bef3f07b5daf7eecd2b3ddd9e824649485e535a
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load humanize %}
4 {% load episodes %}
5 {% load podcasts %}
6 {% load charts %}
7 {% load pcharts %}
9 {% load menu %}
10 {% block mainmenu %}{{ "/publisher/"|main_menu }}{% endblock %}
11 {% block sectionmenu %}{{ "/publisher/podcast/"|section_menu:podcast.title }}{% endblock %}
13 {% block title %}{{ episode.title|default:"Unnamed Episode"|striptags }}{% endblock %}
15 {% block head %}
16 {% if timeline_data %}
17 {{ timeline_data|timeline }}
18 {% endif %}
19 {% endblock %}
22 {% block header %}
23 {% if podcast.logo_url %}
24 <div id="podcastlogo">
25 <a href="{% podcast_link_target podcast "podcast-publisher-detail" %}">
26 {{ podcast|podcast_logo_big }}
27 </a>
28 </div>
29 {% endif %}
31 <h1>{% if episode.title %}{{ episode.title|striptags }}{% else %}{% trans "Unnamed Episode" %}{%endif%} <small>{% trans "Publisher Pages" %}</small></h1>
32 <small class="description">
33 {% trans "from" %} {% podcast_group_link podcast %}&middot;
34 {% if not episode.outdated or "hide-outdated-urls" not in podcast.restrictions %}
35 <a href="{{episode.url}}" title="{% trans "Download" %}">
36 <i class="icon-download"></i>
37 </a>
38 {% endif %}
39 {% if episode.link and episode.link != episode.url %}&middot;
40 <a href="{{episode.link}}" title="{% trans "Website" %}">
41 <i class="icon-external-link"></i>
42 </a>
43 {% endif %}
44 {% if episode.listeners %}&middot;
45 {{ episode.listeners }} {% trans "listeners" %}
46 {% endif %}
47 </small>
49 <p>
50 <ul>
51 <li><a href="{% podcast_link_target podcast "podcast-publisher-episodes" %}">{% trans "Return to the episode list" %}</a></li>
52 <li><a href="{% podcast_link_target podcast "podcast-publisher-detail" %}">{% trans "Return to podcast page" %}</a></li>
53 </ul>
54 </p>
55 {% endblock %}
58 {% block content %}
60 <h2>{% trans "Episode data" %}</h2>
61 <p>{% trans "Last update: " %} {{ episode.last_update|naturaltime }}</p>
63 {% if timeline_data %}
64 <h3>Listener Timeline</h3>
65 <div id="chart_div" style="width: 700px; height: 240px;"></div>
66 {% endif %}
68 {% if heatmap %}
69 <h3>Heatmap</h3>
70 {{ heatmap|episode_heatmap_visualization }}
71 <div>{% trans "Red parts are often skipped, green parts never." %}</div>
72 {% endif %}
74 {% endblock %}