comparison gpp/templates/downloads/download.html @ 23:a5f27f25fa52

Added a latest_downloads template tag. Made the comments view the details view for a download. Changed get_absolute_url to point to this new view.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 21:16:59 +0000
parents 32b1ca8e2940
children 2022c0409296
comparison
equal deleted inserted replaced
22:42f22c56ab05 23:a5f27f25fa52
17 <th>Hits:</th><td>{{ download.hits }}</td> 17 <th>Hits:</th><td>{{ download.hits }}</td>
18 </tr> 18 </tr>
19 <tr> 19 <tr>
20 <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td> 20 <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td>
21 <th><img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" title="Comments" /> 21 <th><img src="{{ MEDIA_URL }}icons/comments.png" alt="Comments" title="Comments" />
22 <a href="{% url downloads-comments download.id %}">Comments</a>:</th><td>{{ comment_count }}</td> 22 <a href="{% url downloads-details download.id %}">Comments</a>:</th><td>{{ comment_count }}</td>
23 </tr> 23 </tr>
24 </table> 24 </table>
25 </dd> 25 </dd>