extract podcast-base template from podcast template
[mygpo.git] / mygpo / web / templates / podcast-base.html
blob30ace0cdfcb3686417cbafd82d608ddf2910404a
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load podcasts %}
4 {% load facebook %}
5 {% load google %}
6 {% load utils %}
8 {% load menu %}
9 {% block mainmenu %}{{ "/podcast/"|main_menu }}{% endblock %}
10 {% block sectionmenu %}
11 {% if podcast.title %}
12 {{ "/podcast/"|section_menu:podcast.title }}
13 {% else %}
14 {{ "/podcast/"|section_menu:"Unnamed Podcast" }}
15 {% endif %}
16 {% endblock %}
18 {% block head %}
19 {{ podcast|opengraph_podcast }}
20 {% google_plus_one_head %}
21 {% endblock %}
23 {% block title %}{{ podcast.title|default:"Unnamed Podcast"|striptags }}{% endblock %}
25 {% block header %}
27 {% if podcast.logo_url %}
28 <div id="podcastlogo">
29 <a href="{% podcast_link_target podcast %}">
30 {{ podcast|podcast_logo_big }}
31 </a>
32 </div>
33 {% endif %}
35 <h1>
36 {% if podcast.title %}
37 {{ podcast.title|striptags }}
38 {% else %}
39 {% trans "Unnamed Podcast" %}
40 {%endif%}
41 </h1>
43 <small class="description">
44 {% if podcast.author %}{% trans "by" %}
45 {{ podcast.author|striptags }}
46 {% endif %}
47 {% if podcast.twitter %}
48 <a href="https://twitter.com/{{ podcast.twitter|striptags }}"><i class="icon-twitter"></i></a>
49 {% endif %}&middot;
50 <a href="{{podcast.url}}" title="{% trans "Feed" %}">
51 <i class="icon-rss"></i>
52 </a>
53 {% if podcast.link %}&middot;
54 <a href="{{podcast.link}}" title="{% trans "Website" %}">
55 <i class="icon-external-link"></i>
56 </a>
57 {% endif %}
58 {% if podcast.subscriber_count %}&middot;
59 {{ podcast.subscriber_count }} {% trans "subscribers" %}
60 {% endif %}
61 </small>
63 {% if related_podcasts %}
64 <div class="related-podcasts">
65 <strong>{% trans "Also available" %}</strong>
66 {% for p in related_podcasts %}
67 {% if p.group_member_name != podcast.group_member_name %}
68 {% podcast_group_link p p.group_member_name %}
69 {% endif %}
70 {% endfor %}
71 </div>
72 {% endif %}
74 {% if podcast.description %}
75 <div class="description" {% if podcast.language %}lang="{{ podcast.language }}"{% endif %}>
76 {{ podcast.description|markdown }}
77 </div>
78 {% endif %}
80 {% endblock %}
83 {% block ads %}
84 {% comment %}disable ads on podcast pages{% endcomment %}
85 {% endblock %}