Mercurial > public > sg101
view gpp/templates/podcast/detail.html @ 314:03b70aa5c872
The home page was taking 27 seconds to load; 99% of the time was being spent in the new_posts template tag query. Reworked it a bit to be much more sane.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 Jan 2011 20:34:36 +0000 |
parents | daa2916f5b34 |
children | 9175392da056 |
line wrap: on
line source
{% extends 'podcast/base.html' %} {% load url from future %} {% block title %}Podcast: {{ podcast.title }}{% endblock %} {% block podcast-content %} <div class="breadcrumbs"> <a href="{% url 'podcast.views.index' %}">Podcast Index</a> >> {{ podcast.title }} </div> <h3>{{ podcast.pubdate|date:"F d, Y" }} • {{ podcast.title }}</h3> <h4>{{ podcast.subtitle }}</h4> {{ podcast.summary|linebreaks }} <ul> <li> <a href="{{ podcast.enclosure_url }}">Download Now ({{ ext }})</a> • {{ podcast.enclosure_length|filesizeformat }} • {{ podcast.duration }} </li> {% if alt_ext %} <li> <a href="{{ podcast.alt_enclosure_url }}">Download Now ({{ alt_ext }})</a> </li> {% endif %} </ul> {% endblock %}