diff gpp/templates/podcast/base.html @ 403:6e425c9b9d16

In support of #161; improve query performance of the feed view; also cache the feed view in urls.py.
author Brian Neal <bgneal@gmail.com>
date Sun, 27 Mar 2011 18:22:48 +0000
parents daa2916f5b34
children
line wrap: on
line diff
--- a/gpp/templates/podcast/base.html	Sun Mar 27 01:51:18 2011 +0000
+++ b/gpp/templates/podcast/base.html	Sun Mar 27 18:22:48 2011 +0000
@@ -1,5 +1,8 @@
 {% extends 'base.html' %}
 {% load url from future %}
+{% block custom_head %}
+<link rel="alternate" type="application/rss+xml" title="SurfGuitar101 Podcast" href="{% url 'podcast-feed' %}" />
+{% endblock %}
 {% block content %}
 <h2><a href="{% url 'podcast-main' %}">SurfGuitar101 Podcast</a></h2>
 <img src="{{ channel.image.url }}" alt="Podcast Logo" style="float: left; margin-right:10px;" />
@@ -15,7 +18,7 @@
 <a href="mailto:podcast@surfguitar101.com">podcast@surfguitar101.com</a>.
 </p>
 <p>
-Subscribe to the podcast via RSS: <a href="{% url 'podcast.views.feed' %}">Feed</a>
+<a href="{% url 'podcast-feed' %}"><img src="{{ STATIC_URL }}icons/feed.png" alt="RSS Feed" title="RSS Feed" /></a> <a href="{% url 'podcast-feed' %}">Subscribe to the podcast via RSS</a>.
 </p>
 <p>
 <strong>Hey iTunes users!</strong> Here is our <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=284928526">listing in iTunes</a>. Follow the previous link and then click the subscribe button to let iTunes automatically download episodes for you.