summaryrefslogtreecommitdiffstats
path: root/templates/dataformat
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2011-05-01 19:32:41 +0100
committerMartin Green <martin.speleo@gmail.com>2011-05-01 19:32:41 +0100
commita26310767ba885bcb403e08f8060f045e4716e08 (patch)
tree935cdf586e354e94757c1f8dc88584e5f3a491a6 /templates/dataformat
parentd38a767d7ca1b205be82b8cb674746f638f5fb52 (diff)
downloadtroggle-a26310767ba885bcb403e08f8060f045e4716e08.tar.gz
troggle-a26310767ba885bcb403e08f8060f045e4716e08.tar.bz2
troggle-a26310767ba885bcb403e08f8060f045e4716e08.zip
edit logbooks, new logbook format, increased database normalisation
Diffstat (limited to 'templates/dataformat')
-rw-r--r--templates/dataformat/logbookentry.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/dataformat/logbookentry.html b/templates/dataformat/logbookentry.html
new file mode 100644
index 0000000..e6b83ce
--- /dev/null
+++ b/templates/dataformat/logbookentry.html
@@ -0,0 +1,25 @@
+{% autoescape off %}
+<html>
+<head>
+<style type="text/css">.author {text-decoration:underline}</style>
+</head>
+<body>
+<H1>{{trip.title}}</H1>
+<span class="date">{{date}}</span> - <span class="expeditionyear">{{expeditionyear}}</span>
+
+{% if trip.caveOrLocation == "cave" %}
+<span class="cave">{{trip.cave}}</span>
+{% else %}
+<span class="location">{{trip.location}}</span>
+{% endif %}
+
+{% for person in persons %}
+<div class="person">
+<span class="name{% if person.author %} author{% endif %}">{{person.name}}</span>
+TU<span class="TU">{% if person.TU %}{{person.TU}}{% else %}0{% endif %}</span>hours
+</div>
+{% endfor %}
+<div class="report">{{trip.html}}</div>
+</body>
+</html>
+{% endautoescape %}