view mysite/templates/band/press_detail.html @ 28:a404f93a68d3

Decrease by 2 orders of magnitude the number of queries needed to generate the gigs page for the Madeira.
author Brian Neal <bgneal@gmail.com>
date Thu, 31 Mar 2011 00:14:34 +0000
parents efb2da0b5d10
children 25e00d1b99bf
line wrap: on
line source
{% extends 'band/base.html' %}
{% load url from future %}
{% load markup %}
{% block title %}The Madeira | Press{% endblock %}
{% block content %}
<h1>Madeira Press, Articles, &amp; Reviews</h1>
<h2>{{ article.title }}</h2>
{% if article.markup_enabled %}
   {{ article.text|textile }}
{% else %}
   {{ article.text|safe|linebreaks }}
{% endif %}
<div class="article-source">
{{ article.source|safe|linebreaks }}
</div>
{% if article.url %}
<a href="{{ article.url }}" target="_blank">Original article</a>
{% endif %}
{% if article.pdf and article.url %}
|
{% endif %}
{% if article.pdf %}
<a href="{{ article.get_pdf_url }}" target="_blank">Original article as PDF</a>
<a href="http://www.adobe.com/products/acrobat/readstep2.html">
   <img src="{{ STATIC_URL }}images/get_adobe_reader.gif" alt="Adobe Reader" title="Get Adobe Reader" border="0"
   align="middle" /></a>
{% endif %}
<p><a href="{% url 'mysite.band.views.press_index' %}">Press index</a></p>
{% endblock %}