]> git.0d.be Git - panikweb.git/commitdiff
point emission pages to their own podcasts
authorFrédéric Péters <fpeters@0d.be>
Sun, 2 Sep 2018 06:16:19 +0000 (08:16 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 2 Sep 2018 06:16:19 +0000 (08:16 +0200)
panikweb/views.py
panikweb_templates/templates/base.html
panikweb_templates/templates/emissions/emission_detail.html

index 09415a63201549dfaf1321c0acbd81d062a92cb1..ab07c7b831f1c8a7fdd76daf386ba8ab937d317a 100644 (file)
@@ -784,7 +784,7 @@ class EmissionPodcastsFeed(PodcastsFeed):
 
     @property
     def title(self):
-        return '%s - Podcasts' % self.emission.title
+        return self.emission.title
 
     @property
     def link(self):
index 64621c31171577feeb3310881ad5af14c2018fed..aaf7ee935eb9d75a31366e0bb20da1682b96d951 100644 (file)
@@ -25,7 +25,9 @@
 
 <link rel="alternate" type="application/rss+xml"  href="{% url 'rss-feed' %}" title="News rss feed">
 <link rel="alternate" type="application/rss+xml"  href="{% url 'atom-feed' %}" title="News atom feed">
-<link rel="alternate" type="application/rss+xml"  href="{% url 'podcasts-feed' %}" title="Podcast sounds">
+{% block podcasts-feed %}
+<link rel="alternate" type="application/rss+xml"  href="{% url 'podcasts-feed' %}" title="Radio Panik Podcasts">
+{% endblock %}
 
     <link rel="stylesheet" href="{{ STATIC_URL }}css/style.css" type="text/css" />
 
index 24cf28587ce05b1529607255ee2b5b03eef40d0e..0b57f24312d01ef392fa34b9f84c71b3f7b4ed1b 100644 (file)
 {% endif %}
 {% endblock %}
 
+{% block podcasts-feed %}
+<link rel="alternate" type="application/rss+xml" href="{% url 'emission-podcasts' slug=emission.slug %}" title="{{ emission.title }} Podcasts">
+{% endblock %}
+
 {% block toptitle %}
 <h1 class="top"><a href="{% url 'grid' %}">{% trans 'Program' %}</a></h1>
 {% endblock %}