Mercurial > public > sg101
annotate gpp/templates/downloads/download_detail.html @ 505:a5d11471d031
Refactor the logic in the rate limiter decorator. Check to see if the request was ajax, as the ajax view always returns 200. Have to decode the JSON response to see if an error occurred or not.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Dec 2011 19:13:38 +0000 |
parents | 41411066b16d |
children |
rev | line source |
---|---|
bgneal@23 | 1 {% extends 'base.html' %} |
bgneal@23 | 2 {% load downloads_tags %} |
bgneal@23 | 3 {% load comment_tags %} |
bgneal@23 | 4 {% load script_tags %} |
bgneal@23 | 5 {% block title %}Downloads Details{% endblock %} |
bgneal@23 | 6 {% block custom_css %} |
bgneal@312 | 7 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/comments.css" /> |
bgneal@312 | 8 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/downloads.css" /> |
bgneal@23 | 9 {% endblock %} |
bgneal@23 | 10 {% block custom_js %} |
bgneal@127 | 11 {% script_tags "markitup jquery-ui" %} |
bgneal@312 | 12 <script type="text/javascript" src="{{ STATIC_URL }}js/comments.js"></script> |
bgneal@312 | 13 <script type="text/javascript" src="{{ STATIC_URL }}js/rating.js"></script> |
bgneal@404 | 14 <script type="text/javascript" src="{{ STATIC_URL }}js/downloads-get.js"></script> |
bgneal@23 | 15 {% endblock %} |
bgneal@23 | 16 {% block content %} |
bgneal@23 | 17 <h2>Downloads</h2> |
bgneal@241 | 18 {% include 'downloads/navigation.html' %} |
bgneal@23 | 19 <h3>Download Details For {{ download.title }}</h3> |
bgneal@23 | 20 |
bgneal@23 | 21 <dl> |
bgneal@23 | 22 {% include 'downloads/download.html' %} |
bgneal@23 | 23 </dl> |
bgneal@23 | 24 |
bgneal@23 | 25 {% get_comment_count for download as comment_count %} |
bgneal@23 | 26 <p>This download has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p> |
bgneal@23 | 27 <hr /> |
bgneal@23 | 28 {% render_comment_list download %} |
bgneal@23 | 29 {% render_comment_form for download %} |
bgneal@23 | 30 {% endblock %} |