summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:56:56 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:56:56 +0100
commit4b34241a16af5e9cbfff0c3b2ede76394e94a3b5 (patch)
tree35eb3ddd5d40401e5149036c06a31620bd7a9417 /templates
parente9cc5094b90b605fca115835294999fba5e79aac (diff)
downloadtroggle-4b34241a16af5e9cbfff0c3b2ede76394e94a3b5.tar.gz
troggle-4b34241a16af5e9cbfff0c3b2ede76394e94a3b5.tar.bz2
troggle-4b34241a16af5e9cbfff0c3b2ede76394e94a3b5.zip
[svn] Added new abstract base class TroggleModel. Any fields or methods that need to be added to multiple models should be added here.
Added edit links to caves, people, logbook entries, and people. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8260 by aaron @ 2/26/2009 5:28 AM
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 %}