Mercurial > agora
comparison templates/bundle/edit.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 |
comparison
equal
deleted
inserted
replaced
176:c042d26e6936 | 177:86129d185ddb |
---|---|
1 {% extends "bundle/base.djhtml" %} | |
2 | |
3 | |
4 {% block title %} | |
5 Editing {{ bundle }} | |
6 {% endblock %} | |
7 | |
8 {% block section %} | |
9 <a href="{{ bundle.get_absolute_url }}">{{ bundle }}</a> | |
10 » | |
11 Edit | |
12 {% endblock %} | |
13 | |
14 {% block content %} | |
15 <h1>Editing {{ bundle }}</h1> | |
16 | |
17 <p class="hint"> | |
18 You can't change a bundle's name after creating it. If you need to change | |
19 the name, simply create a new bundle using the desired name. | |
20 </p> | |
21 | |
22 {% include "bundle/form.djhtml" %} | |
23 {% endblock %} |