Mercurial > public > sg101
view gpp/templates/podcast/index.html @ 20:c0d0779b266f
Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 20:41:37 +0000 |
parents | dbd703f7d63a |
children |
line wrap: on
line source
{% extends 'podcast/base.html' %} {% block title %}Podcast{% endblock %} {% block podcast-content %} {% if channel and channel.item_set %} <h3>Podcast Index</h3> <ul> {% for item in channel.item_set.all %} <li><a href="{{ item.get_absolute_url }}">{{ item.title }}</a> • {{ item.subtitle }} • {{ item.pubdate|date:"F d, Y" }}</li> {% endfor %} </ul> {% else %} <p>No podcasts available at this time.</a> {% endif %} {% endblock %}