From a0a3ef9f60bc9b1b84bc82d72a7e06b4f8ea42cc Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 20 Oct 2017 20:38:29 +0200 Subject: [PATCH] added basic info part to workflow middle panel --- rowers/templates/panel_comments.html | 31 ++++++++++++++++++++++++++++ rowers/utils.py | 1 + 2 files changed, 32 insertions(+) create mode 100644 rowers/templates/panel_comments.html diff --git a/rowers/templates/panel_comments.html b/rowers/templates/panel_comments.html new file mode 100644 index 00000000..99de3bbc --- /dev/null +++ b/rowers/templates/panel_comments.html @@ -0,0 +1,31 @@ +{% load rowerfilters %} +{% load tz %} +
+ + +{% localtime on %} + +{% endlocaltime %} + + + + + + + + + + + + + + +
Date/Time:{{ workout.startdatetime|localtime}}
Distance:{{ workout.distance }}m
Duration:{{ workout.duration |durationprint:"%H:%M:%S.%f" }}
Public link to this workout + https://rowsandall.com/rowers/workout/{{ workout.id }} +
Comments + Comment ({{ aantalcomments }}) +
Public link to interactive chart + https://rowsandall.com/rowers/workout/{{ workout.id }}/interactiveplot + +
+
diff --git a/rowers/utils.py b/rowers/utils.py index 89f181d2..8f2e62a8 100644 --- a/rowers/utils.py +++ b/rowers/utils.py @@ -10,6 +10,7 @@ workflowmiddlepanel = ( ('flexthumbnails.html','Flex Charts'), ('panel_summary.html','Summary'), ('panel_map.html','Map'), + ('panel_comments.html','Basic Info and Links'), ) defaultmiddle = ['panel_statcharts.html',