]> git.0d.be Git - panikweb-esperanzah.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>
Fri, 1 Mar 2019 12:38:57 +0000 (13:38 +0100)
panikweb/views.py
panikweb_templates/templates/base.html
panikweb_templates/templates/emissions/emission_detail.html

index fd4b33d60cf43771fc7ff981666f256a13211130..5e2ad626274c0a90d632953ee939e21c1c377026 100644 (file)
@@ -817,7 +817,7 @@ class EmissionPodcastsFeed(PodcastsFeed):
 
     @property
     def title(self):
-        return '%s - Podcasts' % self.emission.title
+        return self.emission.title
 
     @property
     def link(self):
index 8a4db036fe30133d389f3c242c3f3315c1116741..7fe7688fe90704a6e8b45dcf6d06252f180b6326 100644 (file)
@@ -24,7 +24,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 7de592e926934ec35103436745d37f9cc1240476..4a4a977ab1fc5a770a04009c3f7aeaa5fb5094b4 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 %}
 {% endblock %}