Mercurial > public > sg101
annotate gpp/templates/downloads/download_comments.html @ 6:b6263ac72052
Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 22:50:56 +0000 |
parents | dbd703f7d63a |
children | f408971657b9 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'base.html' %} |
gremmie@1 | 2 {% load downloads_tags %} |
gremmie@1 | 3 {% load comment_tags %} |
bgneal@6 | 4 {% load script_tags %} |
gremmie@1 | 5 {% block title %}Downloads Comments{% endblock %} |
gremmie@1 | 6 {% block custom_css %} |
gremmie@1 | 7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/comments.css" /> |
gremmie@1 | 8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" /> |
gremmie@1 | 9 {% endblock %} |
gremmie@1 | 10 {% block custom_js %} |
bgneal@6 | 11 {% script_tags "jquery" %} |
bgneal@6 | 12 {% script_tags "markitup" %} |
gremmie@1 | 13 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script> |
gremmie@1 | 14 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script> |
gremmie@1 | 15 {% endblock %} |
gremmie@1 | 16 {% block content %} |
gremmie@1 | 17 <h2>Downloads</h2> |
gremmie@1 | 18 {% downloads_navigation %} |
gremmie@1 | 19 <h3>Download Comments For {{ download.title }}</h3> |
gremmie@1 | 20 |
gremmie@1 | 21 <dl> |
gremmie@1 | 22 {% include 'downloads/download.html' %} |
gremmie@1 | 23 </dl> |
gremmie@1 | 24 |
gremmie@1 | 25 {% get_comment_count for download as comment_count %} |
gremmie@1 | 26 <p>This download has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p> |
gremmie@1 | 27 <hr /> |
gremmie@1 | 28 {% render_comment_list download %} |
gremmie@1 | 29 {% render_comment_form for download %} |
gremmie@1 | 30 {% endblock %} |