annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
177
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
1 {% extends "bundle/base.djhtml" %}
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
2
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
3
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
4 {% block title %}
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
5 Editing {{ bundle }}
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
6 {% endblock %}
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
7
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
8 {% block section %}
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
9 <a href="{{ bundle.get_absolute_url }}">{{ bundle }}</a>
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
10 &raquo;
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
11 Edit
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
12 {% endblock %}
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
13
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
14 {% block content %}
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
15 <h1>Editing {{ bundle }}</h1>
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
16
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
17 <p class="hint">
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
18 You can't change a bundle's name after creating it. If you need to change
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
19 the name, simply create a new bundle using the desired name.
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
20 </p>
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
21
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
22 {% include "bundle/form.djhtml" %}
86129d185ddb Add versioning to bundles
dellsystem <ilostwaldo@gmail.com>
parents:
diff changeset
23 {% endblock %}