summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
-rw-r--r--templates/cave.html2
-rw-r--r--templates/expedition.html2
-rw-r--r--templates/logbookentry.html2
-rw-r--r--templates/person.html2
5 files changed, 6 insertions, 4 deletions
diff --git a/templates/base.html b/templates/base.html
index 5d173f3..8c79f87 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -32,7 +32,7 @@
| <a href="{{ settings.URL_ROOT }}/accounts/login">Log in</a>
{% endif %}
{% endblock%}
- | <a href="{{ settings.URL_ROOT }}">Home </a>
+ | <a href="{{ settings.URL_ROOT }}">Home </a> |
{% block editLink %}
{% endblock %}
diff --git a/templates/cave.html b/templates/cave.html
index c97b9cd..d76a211 100644
--- a/templates/cave.html
+++ b/templates/cave.html
@@ -1,6 +1,6 @@
{% extends "cavebase.html" %}
{% load wiki_markup %}
-
+{% block editLink %}<a href={{cave.get_admin_url}}>Edit cave {{cave|wiki_to_html_short}}</a>{% endblock %}
{% block content %}
<div id="col2">
diff --git a/templates/expedition.html b/templates/expedition.html
index b6be4ac..4f91abd 100644
--- a/templates/expedition.html
+++ b/templates/expedition.html
@@ -2,7 +2,7 @@
{% load wiki_markup %}
{% block title %}Expedition {{expedition.name}}{% endblock %}
-
+{% block editLink %}<a href={{expedition.get_admin_url}}>Edit expedition {{expedition|wiki_to_html_short}}</a>{% endblock %}
{% block content %}
<h2>{{expedition.name}}: {{expedition.date_from}} - {{expedition.date_to}}</h2>
diff --git a/templates/logbookentry.html b/templates/logbookentry.html
index 2bfb564..690d21c 100644
--- a/templates/logbookentry.html
+++ b/templates/logbookentry.html
@@ -2,7 +2,7 @@
{% load wiki_markup %}
{% block title %}Logbook {{logbookentry.id}}{% endblock %}
-
+{% block editLink %}<a href={{logbookentry.get_admin_url}}>Edit logbook entry {{logbookentry|wiki_to_html_short}}</a>{% endblock %}
{% block content %}
<h2>{{logbookentry.title|safe}}</h2>
diff --git a/templates/person.html b/templates/person.html
index aed5989..d28f82a 100644
--- a/templates/person.html
+++ b/templates/person.html
@@ -3,6 +3,8 @@
{% block title %}Person {{person|wiki_to_html_short}}{% endblock %}
+{% block editLink %}| <a href={{person.get_admin_url}}>Edit person {{person|wiki_to_html_short}}</a>{% endblock %}
+
{% block contentheader %}
<h2> {{person|wiki_to_html_short}} </h2>
{% endblock %}