summaryrefslogtreecommitdiffstats
path: root/templates/logreport.html
blob: 44a033301db349d90d58f35f9930c53095781fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{% 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>

<p>(Hover mouse over the date to see the slug for the entry.)
{% if logged_in %}<font color="red">Logged in as expoadmin</font>{% endif %}


<table class="expeditionlogbooks">
<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>
{% if logged_in %}<th width=110px>Slug</th><th><font color="red">Admin</font></th>{% endif %}
</tr>
{% regroup dateditems|dictsort:"date" by date as dates %}
{% for date in dates %}
    {% for entry in date.list %}
    <tr>
        <td title="{{entry.slug}}">{{date.grouper|date:"D d M Y"}}</td>
        <td>
           <a href="{{ entry.get_absolute_url }}">{{entry.title|truncatechars:25|safe|striptags}}</a>&nbsp;
        </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>
<td>
<div align="right">{{entry.text|wordcount}}</div>
</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> 
{% if logged_in %}
<form name="delete_entry" method="post" action="/logentrydelete/{{year}}">{% csrf_token %}
<td><a href="/logbookedit/{{entry.slug}}">
{{entry.slug}}</a></td>
<td>
<input  type="hidden" value="{{entry.slug}}" name="entry_slug">
<input type="submit"  value="delete"></td>
</form>
{% endif %}
      </tr>
     {% endfor %}
{% endfor %} 
</table>
   


<p>See also:
<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 %}