annotate gpp/templates/downloads/download.html @ 559:b9a41956be23

Adding the RFB banner block.
author Brian Neal <bgneal@gmail.com>
date Thu, 02 Feb 2012 19:05:46 -0600
parents 3c48a555298d
children
rev   line source
bgneal@310 1 {% load url from future %}
gremmie@1 2 {% load comment_tags %}
bgneal@492 3 {% load bio_tags %}
gremmie@1 4 {% get_comment_count for download as comment_count %}
gremmie@1 5 <dt>
bgneal@208 6 {{ download.title }}
gremmie@1 7 </dt>
gremmie@1 8 <dd>
gremmie@1 9 {{ download.html|safe }}
gremmie@1 10 <table>
gremmie@1 11 <tr>
gremmie@1 12 <th>Added By:</th>
bgneal@492 13 <td>{% profile_link download.user.username %}</td>
gremmie@1 14 <th>Date:</th><td>{{ download.date_added|date:"M d, Y" }}</td>
gremmie@1 15 <th>Size:</th><td>{{ download.size }}</td>
gremmie@1 16 </tr>
gremmie@1 17 <tr>
gremmie@1 18 <th>Category:</th><td>{{ download.category.title }}</td>
bgneal@208 19 <th>Downloads:</th><td>{{ download.hits }}</td>
gremmie@1 20 </tr>
gremmie@1 21 <tr>
gremmie@1 22 <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td>
bgneal@312 23 <th><img src="{{ STATIC_URL }}icons/comments.png" alt="Comments" title="Comments" />
bgneal@310 24 <a href="{% url 'downloads-details' download.id %}">Comments</a>:</th><td>{{ comment_count }}</td>
gremmie@1 25 </tr>
gremmie@1 26 </table>
bgneal@404 27 <div id="link-{{ download.id }}"><button type="button" class="dl-button" id="dl-{{ download.id }}">Download</button></div>
bgneal@406 28 <br />
gremmie@1 29 </dd>