comparison gpp/templates/potd/potd_block.html @ 10:f43f8a956f1d

Make the POTD pic in the block link to the POTD page.
author Brian Neal <bgneal@gmail.com>
date Sun, 12 Apr 2009 20:47:15 +0000
parents dbd703f7d63a
children daa2916f5b34
comparison
equal deleted inserted replaced
9:b3b11edf91d8 10:f43f8a956f1d
1 {% extends 'side_block.html' %} 1 {% extends 'side_block.html' %}
2 {% block block_title %}Photo of the Day{% endblock %} 2 {% block block_title %}Photo of the Day{% endblock %}
3 {% block block_content %} 3 {% block block_content %}
4 {% if potd %} 4 {% if potd %}
5 <center> 5 <center>
6 <img src="{{ potd.thumb.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /><br /> 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 %}">{{ potd.caption }}</a> 7 <a href="{% url potd-view %}">{{ potd.caption }}</a>
8 </center> 8 </center>
9 {% else %} 9 {% else %}
10 <p>No photo at this time.</p> 10 <p>No photo at this time.</p>
11 {% endif %} 11 {% endif %}