diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 06:28:36 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 06:28:36 +0100 |
commit | 0f64e786b5f55895c054c4a377e7fc8672ca47b6 (patch) | |
tree | 4ff84e941581d3d331360262b34fdb306deb504d /templates/subcave.html | |
parent | 7164296c9da927695df2b65cbfec990dd5f39ba2 (diff) | |
download | troggle-0f64e786b5f55895c054c4a377e7fc8672ca47b6.tar.gz troggle-0f64e786b5f55895c054c4a377e7fc8672ca47b6.tar.bz2 troggle-0f64e786b5f55895c054c4a377e7fc8672ca47b6.zip |
[svn] Made the subcaves work! Now we just have to figure out how to parse them...
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8343 by cucc @ 5/11/2009 6:36 AM
Diffstat (limited to 'templates/subcave.html')
-rw-r--r-- | templates/subcave.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/templates/subcave.html b/templates/subcave.html new file mode 100644 index 0000000..c635833 --- /dev/null +++ b/templates/subcave.html @@ -0,0 +1,45 @@ +{% extends "cavebase.html" %}
+{% load wiki_markup %}
+{% block title %} Subcave {{subcave}} {% endblock title %}
+{% block editLink %}<a href={{subcave.get_admin_url}}>Edit subcave {{subcave|wiki_to_html_short}}</a>{% endblock %}
+{% block content %}
+
+<h2>{{subcave}}</h2>
+<p>
+ {{subcave.description}}
+</p>
+
+<div id="col2">
+
+ <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>
+
+
+</div>
+
+{% endblock content %}
\ No newline at end of file |