diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:59:40 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-13 05:59:40 +0100 |
commit | a4edfca30e254aa5135a059870ebd60219874087 (patch) | |
tree | 702260858e4fb84e946602b996d80ebd213735ef /templates/cave.html | |
parent | 90da85e8563298a23e860db08db952f9a6b46f2d (diff) | |
download | troggle-a4edfca30e254aa5135a059870ebd60219874087.tar.gz troggle-a4edfca30e254aa5135a059870ebd60219874087.tar.bz2 troggle-a4edfca30e254aa5135a059870ebd60219874087.zip |
[svn] Got QM pages working.
Started scripts for exporting to old expo format.
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8269 by aaron @ 3/12/2009 2:22 PM
Diffstat (limited to 'templates/cave.html')
-rw-r--r-- | templates/cave.html | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/templates/cave.html b/templates/cave.html index d76a211..9b7c482 100644 --- a/templates/cave.html +++ b/templates/cave.html @@ -4,7 +4,7 @@ {% block content %}
<div id="col2">
- <h3>All trips done in this cave</h3>
+ <h3>All logbook entries regarding this cave ({{cave.logbookentry_set.count}})</h3>
<table>
{% for logbookentry in cave.logbookentry_set.all %}
{% if logbookentry.title %}
@@ -64,4 +64,25 @@ <h2>Notes</h2>
{{ cave.notes|wiki_to_html }}
{% endif %}
+
+{% if cave.get_QMs %}
+ <h2>Question marks</h2>
+ <h3>Extant</h3>
+ <ul>
+ {% for QM in cave.get_QMs %}
+ {% if QM.ticked_off_by %}
+ {% else %}
+ <li><a href="{{QM.get_absolute_url}}">{{QM}}</a></li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+ <h3>Ticked off</h3>
+ <ul>
+ {% for QM in cave.get_QMs %}
+ {% if QM.ticked_off_by %}
+ <li><a href="{{QM.get_absolute_url}}">{{QM}}</a></li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+{% endif %}
{% endblock %}
|