Mercurial > agora-palash
annotate templates/bundle/explore.djhtml @ 177:86129d185ddb
Add versioning to bundles
Some other bundle-related changes were made, including:
* Editing the snippetform CSS and HTML to allow bundle/form.djhtml to
be reused for editing
* Changing {% block title %} to {% block section %} in the base
template for bundles to allow for more flexibility when creating
breadcrumbs
* Saved common URL patterns in variables in bundle/urls.py
* Renamed explore.html to explore.djhtml for consistency
You should now be able to upload new versions as well as view the files
(or a particular file) for a bundle at a specific version.
Coming soon: the ability to add a timestamp and a comment for each new
uploaded version (if this feature is desirable).
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Sat, 20 Oct 2012 23:28:50 -0400 |
parents | |
children |
rev | line source |
---|---|
177 | 1 {% extends "bundle/base.djhtml" %} |
2 | |
3 | |
4 {% load i18n %} | |
5 | |
6 | |
7 {% block title %} | |
8 {% trans "Explore" %} | |
9 {% endblock %} | |
10 | |
11 | |
12 {% block content %} | |
13 <h1>{% trans "Recent bundles" %}</h1> | |
14 | |
15 {% if recent_bundles %} | |
16 <table class="default"> | |
17 <thead> | |
18 <tr> | |
19 <th>{% trans "Bundle name" %}</th> | |
20 <th>{% trans "Created on" %}</th> | |
21 <th>{% trans "User" %}</th> | |
22 </tr> | |
23 </thead> | |
24 <tbody> | |
25 {% for bundle in recent_bundles %} | |
26 <tr> | |
27 <td><a href="{{ bundle.get_absolute_url }}">{{ bundle }}</a></td> | |
28 <td>{{ bundle.pub_date }}</td> | |
29 <td> | |
30 <a href="{{ bundle.uploader.get_absolute_url }}"> | |
31 {{ bundle.uploader }} | |
32 </a> | |
33 </td> | |
34 </tr> | |
35 {% endfor %} | |
36 </tbody> | |
37 </table> | |
38 {% else %} | |
39 <p>{% trans "No bundles have been created yet!" %}</p> | |
40 {% endif %} | |
41 {% endblock %} |