comparison 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
comparison
equal deleted inserted replaced
13:777451a98f9d 14:7b6540b185d9
9 {% block custom_js %} 9 {% block custom_js %}
10 {% script_tags "markitup" %} 10 {% script_tags "markitup" %}
11 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script> 11 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script>
12 {% endblock %} 12 {% endblock %}
13 {% block content %} 13 {% block content %}
14 {% if is_current %}
14 <h2>Photo Of The Day</h2> 15 <h2>Photo Of The Day</h2>
15 <h3>{% now "l, F d, Y" %}</h3> 16 <h3>{% now "l, F d, Y" %}</h3>
17 {% else %}
18 <h2>Photo Of The Day Archives</h2>
19 {% endif %}
16 <div class="potd-details"> 20 <div class="potd-details">
17 {% if potd %} 21 {% if potd %}
18 <img src="{{ potd.photo.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /> 22 <img src="{{ potd.photo.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" />
19 <p class="caption">{{ potd.caption }}</p> 23 <p class="caption">{{ potd.caption }}</p>
20 <p class="details"> 24 <p class="details">