2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-28 02:01:51 +00:00
troggle/templates/logreport.html

88 lines
2.9 KiB
HTML
Raw Normal View History

2024-07-14 15:01:44 +01:00
{% 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>
2024-07-16 16:30:04 +01:00
<p>(Hover mouse over the date to see the slug for the entry.)
2024-07-17 20:58:27 +01:00
{% if logged_in %}<font color="red">Logged in as expoadmin</font>{% endif %}
2024-07-14 15:01:44 +01:00
<table class="expeditionlogbooks">
2024-07-17 20:58:27 +01:00
<tr><th>Date</th><th>Logged trips and diary entries</th><th>Cave</th><th>Text..</th><th>Words</th><th>Author</th><th>Who else</th>
2024-07-23 07:58:17 +01:00
{% if logged_in %}<th width=110px>Slug</th><th><font color="red">Admin</font></th>{% endif %}
2024-07-17 20:58:27 +01:00
</tr>
2024-07-14 15:01:44 +01:00
{% regroup dateditems|dictsort:"date" by date as dates %}
{% for date in dates %}
{% for entry in date.list %}
<tr>
2024-07-16 16:30:04 +01:00
<td title="{{entry.slug}}">{{date.grouper|date:"D d M Y"}}</td>
2024-07-14 15:01:44 +01:00
<td>
2024-07-23 08:39:21 +01:00
<a href="{{ entry.get_absolute_url }}">{{entry.title|truncatechars:25|safe|striptags}}</a>&nbsp;
2024-07-14 15:01:44 +01:00
</td>
<td>
{% if entry.cave %}
<a href="/{{ entry.cave.url }}">{{entry.cave|safe}}</a><br/>
{% else %}
&nbsp;
{% endif %}
</td>
<td>
{{entry.text|striptags|safe|truncatechars:30}}&nbsp;
</td>
2024-07-16 13:45:08 +01:00
<td>
<div align="right">{{entry.text|wordcount}}</div>
</td>
2024-07-14 15:01:44 +01:00
<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 %}
2024-07-17 20:58:27 +01:00
2024-07-14 15:01:44 +01:00
</td>
2024-07-17 20:58:27 +01:00
{% if logged_in %}
2024-07-23 08:39:21 +01:00
<form name="delete_entry" method="post" action="/logentrydelete/{{year}}">{% csrf_token %}
2024-07-23 07:58:17 +01:00
<td>
{{entry.slug}}</td>
<td>
2024-07-23 08:39:21 +01:00
<input type="hidden" value="{{entry.slug}}" name="entry_slug">
2024-07-17 20:58:27 +01:00
<input type="submit" value="delete"></td>
</form>
{% endif %}
2024-07-14 15:01:44 +01:00
</tr>
{% endfor %}
{% endfor %}
</table>
2024-07-17 20:58:27 +01:00
2024-07-14 15:01:44 +01:00
2024-07-16 16:30:04 +01:00
<p>See also:
2024-07-14 15:01:44 +01:00
<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>
{% endblock %}