From c687cfcdd80ce9b87fa5a33aff0ce2b813575a84 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Mon, 15 Jul 2019 20:33:17 +0200 Subject: [PATCH] first steps to allow change of settings --- snippets/graph.html | 44 +++++++++++++++++++++++++++- snippets/scales.html | 67 ++++++++++++++++++++++++++++++++++++++++--- templates/layout.html | 1 + 3 files changed, 107 insertions(+), 5 deletions(-) diff --git a/snippets/graph.html b/snippets/graph.html index d76e53e..c33770a 100644 --- a/snippets/graph.html +++ b/snippets/graph.html @@ -1,6 +1,11 @@ {{define "body_content"}} {{ if ne .UserName "" }} +
+ Zurück +
+
+
@@ -9,8 +14,37 @@ {{ else }} diff --git a/snippets/scales.html b/snippets/scales.html index 51b196f..d7be501 100644 --- a/snippets/scales.html +++ b/snippets/scales.html @@ -1,11 +1,49 @@ {{define "body_content"}} {{ if ne .UserName "" }} + + {{range .LastMetrics}}
-

{{.Alias}}

-

letzte Messung: {{.Timestamp}}

-
+

{{.Alias}}

+

letzte übermittelte Messung: {{.Timestamp}}

+
+ {{end}} + + {{ else }}

Bitte zuerst einloggen

{{end}} diff --git a/templates/layout.html b/templates/layout.html index 70dc008..82ab578 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -4,6 +4,7 @@ + mini-beieli.ch - die besondere Bienenstockwaage