2009-05-13 06:28:36 +01:00
|
|
|
{% extends "cavebase.html" %}
|
|
|
|
{% load wiki_markup %}
|
2009-05-22 01:50:16 +01:00
|
|
|
{% load mptt_tags %}
|
2009-05-13 06:28:36 +01:00
|
|
|
{% block title %} Subcave {{subcave}} {% endblock title %}
|
|
|
|
{% block editLink %}<a href={{subcave.get_admin_url}}>Edit subcave {{subcave|wiki_to_html_short}}</a>{% endblock %}
|
2009-05-22 01:50:16 +01:00
|
|
|
|
|
|
|
{% block contentheader %}
|
|
|
|
{{subcave.title}}
|
|
|
|
{% endblock contentheader %}
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-13 06:28:36 +01:00
|
|
|
{% block content %}
|
2009-07-03 00:50:56 +01:00
|
|
|
{% block related %}
|
2009-05-13 06:28:36 +01:00
|
|
|
|
|
|
|
<h2>Related places</h2>
|
|
|
|
|
|
|
|
<h3>Parent</h3>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{% if subcave.parent %}
|
|
|
|
<li><a href="{{subcave.parent.get_absolute_url}}">{{subcave.parent}}</a></li>
|
|
|
|
{% else %}
|
|
|
|
<li><a href="{{subcave.cave.get_absolute_url}}">{{subcave.cave}}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Connected subareas</h3>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{% for sibling in subcave.adjoining.all%}
|
|
|
|
<li><a href="{{sibling.get_absolute_url}}">{{silbling}}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Children</h3>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{% for child in subcave.children.all %}
|
|
|
|
<li><a href="{{child.get_absolute_url}}">{{child}}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2009-07-03 00:50:56 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
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}}
|
|
|
|
</p>
|
2009-05-13 06:28:36 +01:00
|
|
|
|
|
|
|
{% endblock content %}
|