comparison gpp/templates/downloads/download.html @ 404:41411066b16d

Fixing #199; redid the downloads so the user has more control about how to save the file.
author Brian Neal <bgneal@gmail.com>
date Sun, 27 Mar 2011 23:21:17 +0000
parents 88b2b9cb8c1f
children f469261d617b
comparison
equal deleted inserted replaced
403:6e425c9b9d16 404:41411066b16d
4 <dt> 4 <dt>
5 {{ download.title }} 5 {{ download.title }}
6 </dt> 6 </dt>
7 <dd> 7 <dd>
8 {{ download.html|safe }} 8 {{ download.html|safe }}
9 <form action="{% url 'downloads-download' download.id %}" method="post">{% csrf_token %}
10 <table> 9 <table>
11 <tr> 10 <tr>
12 <th>Added By:</th> 11 <th>Added By:</th>
13 <td><a href="{% url 'bio-view_profile' download.user.username %}">{{ download.user.username }}</a></td> 12 <td><a href="{% url 'bio-view_profile' download.user.username %}">{{ download.user.username }}</a></td>
14 <th>Date:</th><td>{{ download.date_added|date:"M d, Y" }}</td> 13 <th>Date:</th><td>{{ download.date_added|date:"M d, Y" }}</td>
21 <tr> 20 <tr>
22 <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td> 21 <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td>
23 <th><img src="{{ STATIC_URL }}icons/comments.png" alt="Comments" title="Comments" /> 22 <th><img src="{{ STATIC_URL }}icons/comments.png" alt="Comments" title="Comments" />
24 <a href="{% url 'downloads-details' download.id %}">Comments</a>:</th><td>{{ comment_count }}</td> 23 <a href="{% url 'downloads-details' download.id %}">Comments</a>:</th><td>{{ comment_count }}</td>
25 </tr> 24 </tr>
26 <tr><td><input type="submit" value="Download Now" /></td></tr>
27 </table> 25 </table>
28 </form> 26 <div id="link-{{ download.id }}"><button type="button" class="dl-button" id="dl-{{ download.id }}">Download</button></div>
29 </dd> 27 </dd>