annotate gpp/templates/downloads/download_comments.html @ 12:f408971657b9

Changed the shoutbox: posts are now made by Ajax. The smiley farm is loaded only on demand. jQuery is now in the base template. May add scrolling later.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Apr 2009 01:13:17 +0000
parents b6263ac72052
children
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 "markitup" %}
gremmie@1 12 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script>
gremmie@1 13 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script>
gremmie@1 14 {% endblock %}
gremmie@1 15 {% block content %}
gremmie@1 16 <h2>Downloads</h2>
gremmie@1 17 {% downloads_navigation %}
gremmie@1 18 <h3>Download Comments For {{ download.title }}</h3>
gremmie@1 19
gremmie@1 20 <dl>
gremmie@1 21 {% include 'downloads/download.html' %}
gremmie@1 22 </dl>
gremmie@1 23
gremmie@1 24 {% get_comment_count for download as comment_count %}
gremmie@1 25 <p>This download has <span id="comment-count">{{ comment_count }}</span> comment{{ comment_count|pluralize }}.</p>
gremmie@1 26 <hr />
gremmie@1 27 {% render_comment_list download %}
gremmie@1 28 {% render_comment_form for download %}
gremmie@1 29 {% endblock %}