2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 14:28:09 +00:00

[svn] * Make subcave urls work.

* Add json and xml download to admin.
This commit is contained in:
substantialnoninfringinguser
2009-05-22 01:50:16 +01:00
parent 83634fe95a
commit c38dfd20a1
7 changed files with 78 additions and 8 deletions

View File

@@ -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}}

View File

@@ -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}}