Mercurial > agora
view templates/bundle/index.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 | 86129d185ddb |
children |
line wrap: on
line source
{% extends "bundle/base.djhtml" %} {% load i18n %} {% block title %} New bundle {% endblock title %} {% block section %} New bundle {% endblock %} {% block content %} <div id="non-sidebar"> <h1>{% trans "Upload a new bundle" %}</h1> <p class="hint">Upload either an archived file or a plain text file. Accepted formats for archive files: zip, tar, tar.gz, tar.bz2. </p> {% include "bundle/form.djhtml" %} </div><div id="sidebar"> <h2>Latest bundles</h2> {% if bundles|length > 0 %} {% for bundle in bundles %} <h3> <a href="{{ bundle.get_absolute_url }}">{{ bundle.name }}</a> by <a href="{{ bundle.uploader.get_absolute_url }}"> {{ bundle.uploader }} </a> </h3> <p> Bundle published on {{ bundle.pub_date }}, under the license {{ bundle.free_license }}. </p> {% endfor %} {% else %} <p>No bundles registered yet!</p> {% endif %} </div> {% endblock %}