summaryrefslogtreecommitdiffstats
path: root/templates/statistics.html
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-04 21:57:04 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-04 21:57:04 +0100
commitb7fea2042feb5ad12d99e7279498ad68c00c983b (patch)
treefe871bf7c98c28286b45277e6f432cf3a6aa05ad /templates/statistics.html
parentc6d68749e06892ce6607819081e4639a9d589409 (diff)
downloadtroggle-b7fea2042feb5ad12d99e7279498ad68c00c983b.tar.gz
troggle-b7fea2042feb5ad12d99e7279498ad68c00c983b.tar.bz2
troggle-b7fea2042feb5ad12d99e7279498ad68c00c983b.zip
merge exptl & stats, delete millenial & eyecandy
Diffstat (limited to 'templates/statistics.html')
-rw-r--r--templates/statistics.html22
1 files changed, 20 insertions, 2 deletions
diff --git a/templates/statistics.html b/templates/statistics.html
index daca752..5c9810b 100644
--- a/templates/statistics.html
+++ b/templates/statistics.html
@@ -1,8 +1,26 @@
{% extends "base.html" %}
{% load wiki_markup %}
+{% load link %}
-{% block title %}Database statistics{% endblock %}
+{% block title %}Expo statistics{% endblock %}
{% block content %}
-Over the course of {{ expoCount }} expeditions, {{ personCount }} people have contributed {{ caveCount }} caves and {{ logbookEntryCount }} logbook entries.
+<h1>Expo Statistics</h1>
+
+<p>{{ expoCount }} expeditions: {{ personCount }} people have contributed {{ caveCount }} caves and {{ logbookEntryCount }} logbook entries.
+
+<p>Number of survey legs: {{nsurvexlegs}}, total length: {{totalsurvexlength|stringformat:".3f"}} km</p>
+
+<table>
+<tr><th>Year</th><th>Surveys</th><th>Survey Legs</th><th>Total length<br>(km)</th></tr>
+{% for legs in legsbyexpo %}
+<tr>
+ <td>{{legs.0.year}}</td>
+ <td style="text-align:right">{{legs.0.survexblock_set.all|length}}</td>
+ <td style="text-align:right">{{legs.1.nsurvexlegs|rjust:"10"}}</td>
+ <td style="text-align:right">{{legs.1.survexleglength|stringformat:".3f"}}</td>
+</tr>
+{% endfor %}
+</table>
+
{% endblock %} \ No newline at end of file