diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-22 01:50:16 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-22 01:50:16 +0100 |
commit | 49ed6495ad296283ee0977777b2b2d8a72bc23af (patch) | |
tree | 07e7be1471f0173ce12c594ec333f7e31302d098 /templates | |
parent | 9f13a584984c56dc68a090a0d55575b2cdbedaf5 (diff) | |
download | troggle-49ed6495ad296283ee0977777b2b2d8a72bc23af.tar.gz troggle-49ed6495ad296283ee0977777b2b2d8a72bc23af.tar.bz2 troggle-49ed6495ad296283ee0977777b2b2d8a72bc23af.zip |
[svn] * Make subcave urls work.
* Add json and xml download to admin.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/qm.html | 12 | ||||
-rw-r--r-- | templates/subcave.html | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/templates/qm.html b/templates/qm.html index 06e6e0e..52413f0 100644 --- a/templates/qm.html +++ b/templates/qm.html @@ -1,5 +1,6 @@ {% extends "base.html" %}
{% load wiki_markup %}
+{% load link %}
{% block title %} QM: {{qm|wiki_to_html_short}} {% endblock %}
@@ -19,6 +20,17 @@ {% block content %}
+
+<div id="col2">
+
+ <h2>Related items</h2>
+
+Parent cave: {{qm.found_by.cave|link}}
+(todo: add parent survey and parent subcave)
+
+
+</div>
+
<h3>Location</h3>
{{qm.location_description}}
diff --git a/templates/subcave.html b/templates/subcave.html index c635833..4cd9be0 100644 --- a/templates/subcave.html +++ b/templates/subcave.html @@ -1,9 +1,24 @@ {% extends "cavebase.html" %}
{% load wiki_markup %}
+{% load mptt_tags %}
{% block title %} Subcave {{subcave}} {% endblock title %}
{% block editLink %}<a href={{subcave.get_admin_url}}>Edit subcave {{subcave|wiki_to_html_short}}</a>{% endblock %}
+
+{% block contentheader %}
+ {{subcave.title}}
+{% endblock contentheader %}
+
+
+
{% block content %}
+ok here comes the drilldown<br />
+{% drilldown_tree_for_node subcave as drilldown %}
+{% for each in drilldown %}
+{{ each }}>
+{% endfor %}
+
+
<h2>{{subcave}}</h2>
<p>
{{subcave.description}}
|