diff options
Diffstat (limited to 'templates/logreport.html')
-rw-r--r-- | templates/logreport.html | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/templates/logreport.html b/templates/logreport.html new file mode 100644 index 0000000..087792e --- /dev/null +++ b/templates/logreport.html @@ -0,0 +1,72 @@ +{% extends "base.html" %} +{% block title %}Log Report {{year}} for {{expedition.name}}{% endblock %} +{% block related %} +{% endblock %} + +{% block content %} +<!-- templates/logreport.html - this text visible because this template has been included --> + +<h2>Logbook report for {{expedition.name}}</h2> + +<p><b>Other years:</b> +{% for otherexpedition in expeditions %} + {% if otherexpedition == expedition %} + | <b>{{otherexpedition.year}}</b> + {% else %} + | <a href="/logreport/{{otherexpedition.year}}">{{ otherexpedition.year }}</a> + {% endif %} +{% endfor %} +</p> + + + +<h3 id="trips"> {{expedition.name}} - Logbook entries per day</h3> + +<table class="expeditionlogbooks"> +<tr><th>Date</th><th>Logged trips and diary entries</th><th>Cave</th><th>Text..</th><th>Author</th><th>Who else</th></tr> +{% regroup dateditems|dictsort:"date" by date as dates %} +{% for date in dates %} + {% for entry in date.list %} + <tr> + <td>{{date.grouper|date:"D d M Y"}}</td> + <td> + <a href="{{ entry.get_absolute_url }}">{{entry.title|truncatechars:30|safe|striptags}}</a> + </td> + <td> + {% if entry.cave %} + <a href="/{{ entry.cave.url }}">{{entry.cave|safe}}</a><br/> + {% else %} + + {% endif %} + </td> + <td> + {{entry.text|striptags|safe|truncatechars:30}} + </td> + <td> + <a href="/personexpedition/{{entry.author.personexpedition.person}}/{{year}}">{{entry.author.nickname_used}}</a> + </td> + <td> + {% if entry.who %} + {% for w in entry.who %} + <a href="/personexpedition/{{w.personexpedition.person}}/{{year}}">{{w.nickname_used}}</a>, + {% endfor %} + {% endif %} + + </td> + </tr> + {% endfor %} +{% endfor %} +</table> + +<p>See also the +<ul> +<li> <a href="/expedition/{{expedition.year}}">full calendar page</a> for this Expo (slow page) +<li> <a href="/years/{{expedition.year}}/">documentation index</a> for this Expo +<li> <a href="/wallets/year/{{expedition.year}}">wallet completion status</a> for this Expo +<li> <a href="/aliases/{{expedition.year}}">alias names</a> for this Expo +<li> <a href="/years/{{expedition.year}}/{{expedition.logbookfile}}">full logbook</a> for this Expo +<li> <a href="/logbookedit/">new logbook entry</a> for this Expo +</ul> + +<h3> {{expedition.name}} </h3> +{% endblock %} |