view templates/bundle/explore.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 %}
{% trans "Explore" %}
{% endblock %}


{% block content %}
<h1>{% trans "Recent bundles" %}</h1>

{% if recent_bundles %}
<table class="default">
    <thead>
        <tr>
            <th>{% trans "Bundle name" %}</th>
            <th>{% trans "Created on" %}</th>
            <th>{% trans "User" %}</th>
        </tr>
    </thead>
    <tbody>
        {% for bundle in recent_bundles %}
        <tr>
            <td><a href="{{ bundle.get_absolute_url }}">{{ bundle }}</a></td>
            <td>{{ bundle.pub_date }}</td>
            <td>
                <a href="{{ bundle.uploader.get_absolute_url }}">
                    {{ bundle.uploader }}
                </a>
            </td>
        </tr>
        {% endfor %}
    </tbody>
</table>
{% else %}
<p>{% trans "No bundles have been created yet!" %}</p>
{% endif %}
{% endblock %}