From 6cd660982c236dca3a56a6a2757fa52fbbe1e49c Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 2 Jul 2020 16:24:39 +0100 Subject: [PATCH] More informative html in templates --- templates/controlPanel.html | 2 ++ templates/statistics.html | 23 ++++++++++++++++------- templates/tasks.html | 17 ++++++++++++++--- 3 files changed, 32 insertions(+), 10 deletions(-) diff --git a/templates/controlPanel.html b/templates/controlPanel.html index 7325d3b..da33867 100644 --- a/templates/controlPanel.html +++ b/templates/controlPanel.html @@ -21,6 +21,8 @@ {% endif %} +

NONE of this is working currently

+

The code behind this page is under repair

Wipe:

diff --git a/templates/statistics.html b/templates/statistics.html index 0cbe115..cd9bf4a 100644 --- a/templates/statistics.html +++ b/templates/statistics.html @@ -7,24 +7,33 @@ {% block content %}

Expo Statistics

-

{{ expoCount }} expeditions: {{ personCount }} people have contributed {{ caveCount }} caves and {{ logbookEntryCount }} logbook entries. +

{{ expoCount }} expeditions: {{ personCount }} people, {{ caveCount }} caves and {{ logbookEntryCount }} logbook entries.

Number of survey legs: {{nsurvexlegs}}
Total length: {{totalsurvexlength|stringformat:".1f"}} km added-up on importing survex files.
-Total length: {{addupsurvexlength|stringformat:".1f"}} km adding up all the years below.

+Total length: {{addupsurvexlength|stringformat:".1f"}} km adding up the total for each year.

-

These are raw tape lengths which include pitches, splays and surface-surveys. +

These are raw tape lengths which include pitches, splays and surface-surveys. There is also some doubt that the parsing is +correct so maybe some long lengths are misinterpeted: compass readings as tape-lengths for example: LoadSurvexDataCmd +in parsers/survex.py would be a good place to start. +

+This is work in progress (July 2020). + +

However the number of survey legs should be correct, and the by-year total should be +the same as the by-file-import total.
Obviously there is still work to do. - + {% for legs in legsbyexpo %} - - + + {% endfor %}
YearSurvex
Surveys
Survey LegsTotal length
(m)
YearSurvex
Survey
Blocks
Survex
Survey Legs
Total length
(m)
{{legs.0.year}}{{legs.0.survexblock_set.all|length}}{{legs.1.nsurvexlegs|rjust:"10"}}{{legs.0.survexblock_set.all|length}}{{legs.1.nsurvexlegs|rjust:"10"}} {{legs.1.survexleglength}}
- +

One Survex Survey Block is one *begin/*end block of data in a survex file. +Some files from other caving clubs may have a convention of using many more blocks per file than we do, e.g. if the +file is exported from other software into survex format. {% endblock %} \ No newline at end of file diff --git a/templates/tasks.html b/templates/tasks.html index 97a924f..4a6a02b 100644 --- a/templates/tasks.html +++ b/templates/tasks.html @@ -5,19 +5,30 @@ {% block title %}Cambridge Expeditions to Austria{% endblock %} {% block content %} -

Expo member tasks

+

This is not fully working currently

+

The code behind this page is under repair

+ + +

Expo member tasks

Add new data

  • Upload a photo
  • -
  • Record a new trip
  • +
  • Upload a GPS track
  • +
  • Upload a Tunnel or Therion drawing
  • +
  • Upload or type in a Survex file
  • Unfinished wallets work to do:

    +2016 wallets
    +2017 wallets
    +2018 wallets
    +2019 wallets
    + {% for survey in surveys_unfinished %}
  • {{survey|link}}
  • {% endfor %} -

    Caving recommendations

    +

    Caving QM recommendations

    {% for qm in qms_recommended %}
  • {{qm|link}}
  • {% endfor %}