diff gpp/templates/potd/view.html @ 14:7b6540b185d9

Added get_absolute_url() for my comments. Had to add a get_absolute_url() function for downloads in the process.
author Brian Neal <bgneal@gmail.com>
date Sat, 18 Apr 2009 19:14:17 +0000
parents f408971657b9
children f882ac8ce255
line wrap: on
line diff
--- a/gpp/templates/potd/view.html	Thu Apr 16 02:00:17 2009 +0000
+++ b/gpp/templates/potd/view.html	Sat Apr 18 19:14:17 2009 +0000
@@ -11,8 +11,12 @@
 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script>
 {% endblock %}
 {% block content %}
+{% if is_current %}
 <h2>Photo Of The Day</h2>
 <h3>{% now "l, F d, Y" %}</h3>
+{% else %}
+<h2>Photo Of The Day Archives</h2>
+{% endif %}
 <div class="potd-details">
 {% if potd %}
 <img src="{{ potd.photo.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" />