Mercurial > agora
comparison 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 |
comparison
equal
deleted
inserted
replaced
188:1eb652aa501a | 209:4033ebe1867f |
---|---|
96 <li> | 96 <li> |
97 <a href="{{ bundle.get_absolute_url }}/{{ version }}"> | 97 <a href="{{ bundle.get_absolute_url }}/{{ version }}"> |
98 {% if version == this_version %}<strong>{% endif %} | 98 {% if version == this_version %}<strong>{% endif %} |
99 Version {{ version }} | 99 Version {{ version }} |
100 {% if version == this_version %}</strong>{% endif %} | 100 {% if version == this_version %}</strong>{% endif %} |
101 </a> | 101 </a> :: <a href="{% url bundle_download bundle.uploader.username bundle.name version %}">Download »</a> |
102 </li> | 102 </li> |
103 {% endfor %} | 103 {% endfor %} |
104 </ul> | 104 </ul> |
105 {% endif %} | 105 {% endif %} |
106 {% endif %} | 106 {% endif %} |