annotate gpp/templates/downloads/download_comments.html @ 20:c0d0779b266f

Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 20:41:37 +0000
parents f408971657b9
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 %}