comparison gpp/templates/potd/potd_block.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents f43f8a956f1d
children
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'side_block.html' %} 1 {% extends 'side_block.html' %}
2 {% load url from future %}
2 {% block block_title %}Photo of the Day{% endblock %} 3 {% block block_title %}Photo of the Day{% endblock %}
3 {% block block_content %} 4 {% block block_content %}
4 {% if potd %} 5 {% if potd %}
5 <center> 6 <center>
6 <a href="{% url potd-view %}"><img src="{{ potd.thumb.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /></a><br /> 7 <a href="{% url 'potd-view' %}"><img src="{{ potd.thumb.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /></a><br />
7 <a href="{% url potd-view %}">{{ potd.caption }}</a> 8 <a href="{% url 'potd-view' %}">{{ potd.caption }}</a>
8 </center> 9 </center>
9 {% else %} 10 {% else %}
10 <p>No photo at this time.</p> 11 <p>No photo at this time.</p>
11 {% endif %} 12 {% endif %}
12 {% endblock %} 13 {% endblock %}