{% block contentheader %}
{% endblock %}
+
+{% block related %}
+{% endblock %}
+
+
{% block content %}
REPLACE : The content
{% endblock %}
diff --git a/templates/cave.html b/templates/cave.html
index 8aaea22..9469118 100644
--- a/templates/cave.html
+++ b/templates/cave.html
@@ -1,10 +1,9 @@
{% extends "cavebase.html" %}
{% load wiki_markup %}
{% block editLink %}|
Edit cave {{cave|wiki_to_html_short}}{% endblock %}
-{% block content %}
-
-
All logbook entries regarding this cave ({{cave.logbookentry_set.count}})
+{% block related %}
+
All logbook entries regarding this cave ({{cave.logbookentry_set.count}})
{% for logbookentry in cave.logbookentry_set.all %}
{% if logbookentry.title %}
@@ -15,7 +14,9 @@
{% endif %}
{% endfor %}
-
+{% endblock %}
+
+{% block content %}
{% if cave.entrances %}
Entrances
diff --git a/templates/expedition.html b/templates/expedition.html
index 4f91abd..d208b7d 100644
--- a/templates/expedition.html
+++ b/templates/expedition.html
@@ -1,16 +1,15 @@
{% extends "base.html" %}
{% load wiki_markup %}
+{% load link %}
{% block title %}Expedition {{expedition.name}}{% endblock %}
{% block editLink %}
Edit expedition {{expedition|wiki_to_html_short}}{% endblock %}
-{% block content %}
-
{{expedition.name}}: {{expedition.date_from}} - {{expedition.date_to}}
-
+{% block related %}
- {% if expedition_prev %}< < {{expedition_prev.year}}{% endif %} |
- {% if expedition_next %}> > {{expedition_next.year}}{% endif %} |
+ {% if expedition_prev %}< < {{ expedition_prev|link }} {% endif %} |
+ {% if expedition_next %}> > {{ expedition_next|link }} {% endif %} |
@@ -24,7 +23,11 @@
{% endfor %}
-
+{% endblock %}
+
+{% block content %}
+
{{expedition.name}}: {{expedition.date_from}} - {{expedition.date_to}}
+
Logbook entries
diff --git a/templates/frontpage.html b/templates/frontpage.html
index bf04709..873f198 100644
--- a/templates/frontpage.html
+++ b/templates/frontpage.html
@@ -3,11 +3,7 @@
{% block title %}Cambridge Expeditions to Austria{% endblock %}
-
-
-{% block content %}
-
-
+ {% block related %}
Recent Actions
{% load log %}
{% get_admin_log 10 as admin_log %}
@@ -32,7 +28,11 @@
{% endfor %}
{% endif %}
-
+ {% endblock %}
+
+{% block content %}
+
+
diff --git a/templates/logbookentry.html b/templates/logbookentry.html
index 89069e8..9e632a4 100644
--- a/templates/logbookentry.html
+++ b/templates/logbookentry.html
@@ -7,7 +7,7 @@
{{logbookentry.title|safe}}
-
+
{{logbookentry.expedition.name}}
{% if logbookentry.cave %}
diff --git a/templates/logbooksearch.html b/templates/logbooksearch.html
deleted file mode 100644
index 2fc00f8..0000000
--- a/templates/logbooksearch.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{% extends "base.html" %}
-{% load wiki_markup %}
-{% block title %}Logbook search results for "{{ query_string }}"{% endblock%}
-
-{% block content %}
-
-
Troggle logbook search
-
-
Your search string, {{ query_string }},
-
-{% if found_entries %}
- was found in the following {{entry.count}} logbook titles and / or entries:
-
- {% else %}
- was not found in any logbook titles and / or entries. Please try again.
- {% endif %}
-{% endblock %}
\ No newline at end of file
diff --git a/templates/personexpedition.html b/templates/personexpedition.html
index 4b762a4..a0245aa 100644
--- a/templates/personexpedition.html
+++ b/templates/personexpedition.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load wiki_markup %}
+{% load link %}
{% block title %}Person {{personexpedition.person|wiki_to_html_short}} for {{personexpedition.expedition}}{% endblock %}
@@ -18,7 +19,7 @@
{% ifequal otherpersonexpedition personexpedition %}
|
{{otherpersonexpedition.expedition.year}}
{% else %}
- |
{{otherpersonexpedition.expedition.year}}
+ | {{ otherpersonexpedition|link }}
{% endifequal %}
{% endfor %}
diff --git a/templates/qm.html b/templates/qm.html
index 52413f0..6e2a2fb 100644
--- a/templates/qm.html
+++ b/templates/qm.html
@@ -18,18 +18,14 @@
{% endblock %}
-{% block content %}
+{% block related %}
-
-
-
-
Related items
+{% endblock %}
+Related items
Parent cave: {{qm.found_by.cave|link}}
(todo: add parent survey and parent subcave)
-
-
-
+{% block content %}
Location
{{qm.location_description}}
diff --git a/templates/subcave.html b/templates/subcave.html
index 4cd9be0..fbb8d1d 100644
--- a/templates/subcave.html
+++ b/templates/subcave.html
@@ -11,20 +11,7 @@
{% block content %}
-
-ok here comes the drilldown
-{% drilldown_tree_for_node subcave as drilldown %}
-{% for each in drilldown %}
-{{ each }}>
-{% endfor %}
-
-
-
{{subcave}}
-
- {{subcave.description}}
-
-
-
+{% block related %}
Related places
@@ -55,6 +42,18 @@ ok here comes the drilldown
-
+{% endblock %}
+
+ok here comes the drilldown
+{% drilldown_tree_for_node subcave as drilldown %}
+{% for each in drilldown %}
+{{ each }}>
+{% endfor %}
+
+
+
{{subcave}}
+
+ {{subcave.description}}
+
{% endblock content %}
\ No newline at end of file