Mercurial > public > sg101
comparison gpp/templates/downloads/download_detail.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 | |
children | 2d299909e074 |
comparison
equal
deleted
inserted
replaced
22:42f22c56ab05 | 23:a5f27f25fa52 |
---|---|
1 {% extends 'base.html' %} | |
2 {% load downloads_tags %} | |
3 {% load comment_tags %} | |
4 {% load script_tags %} | |
5 {% block title %}Downloads Details{% endblock %} | |
6 {% block custom_css %} | |
7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/comments.css" /> | |
8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" /> | |
9 {% endblock %} | |
10 {% block custom_js %} | |
11 {% script_tags "markitup" %} | |
12 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script> | |
13 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script> | |
14 {% endblock %} | |
15 {% block content %} | |
16 <h2>Downloads</h2> | |
17 {% downloads_navigation %} | |
18 <h3>Download Details For {{ download.title }}</h3> | |
19 | |
20 <dl> | |
21 {% include 'downloads/download.html' %} | |
22 </dl> | |
23 | |
24 {% get_comment_count for download as comment_count %} | |
25 <p>This download has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p> | |
26 <hr /> | |
27 {% render_comment_list download %} | |
28 {% render_comment_form for download %} | |
29 {% endblock %} |