diff gpp/templates/forums/forum_index.html @ 263:307a74e28112

Fixing #113; re-arrange the RSS forum feed icons around a bit.
author Brian Neal <bgneal@gmail.com>
date Thu, 23 Sep 2010 00:26:07 +0000
parents 6a5549c2efb5
children 593fb6dbd449
line wrap: on
line diff
--- a/gpp/templates/forums/forum_index.html	Wed Sep 22 23:54:49 2010 +0000
+++ b/gpp/templates/forums/forum_index.html	Thu Sep 23 00:26:07 2010 +0000
@@ -1,8 +1,17 @@
 {% extends 'base.html' %}
 {% load forum_tags %}
+{% block custom_head %}
+{% if feed %}
+<link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" />
+{% endif %}
+{% endblock %}
 {% block title %}Forums: {{ forum.name }}{% endblock %}
 {% block content %}
-<h2>Forums: {{ forum.name }}</h2>
+<h2>Forums: {{ forum.name }}
+   {% if feed %}
+   <a href="{{ feed.feed }}"><img src="{{ MEDIA_URL }}icons/feed.png" alt="RSS Feed" title="Feed for this forum" /></a>
+   {% endif %}
+</h2>
 
 <h3>
    <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;