diff templates/bundle/bundle.djhtml @ 209:4033ebe1867f

Add ability to download files This makes use of a new model (BundleVersion) to keep track of the locations on disk of the original uploads for each version. This will require some manual processing to get it working for existing bundles, since the information needed isn't being stored at the moment.
author dellsystem <ilostwaldo@gmail.com>
date Sun, 17 Feb 2013 14:57:39 -0500
parents b711f0087709
children 2a234e11185c
line wrap: on
line diff
--- a/templates/bundle/bundle.djhtml	Sat Oct 27 16:26:54 2012 -0400
+++ b/templates/bundle/bundle.djhtml	Sun Feb 17 14:57:39 2013 -0500
@@ -98,7 +98,7 @@
                 {% if version == this_version %}<strong>{% endif %}
                 Version {{ version }}
                 {% if version == this_version %}</strong>{% endif %}
-            </a>
+            </a> :: <a href="{% url bundle_download bundle.uploader.username bundle.name version %}">Download &raquo;</a>
         </li>
     {% endfor %}
     </ul>