From 27e40783e14ae18583d8aeaa187045e6566128e1 Mon Sep 17 00:00:00 2001 From: philipp Date: Thu, 2 Nov 2023 18:59:33 +0100 Subject: [PATCH] image required; cleaner log --- src/tera/ergo.rs | 10 ++++++++-- templates/ergo.html.tera | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/tera/ergo.rs b/src/tera/ergo.rs index 81af3b5..b2a8aab 100644 --- a/src/tera/ergo.rs +++ b/src/tera/ergo.rs @@ -139,7 +139,10 @@ async fn new_thirty( Log::create( db, - format!("{created_by:?} created thirty-ergo entry: {data:?}"), + format!( + "{} created thirty-ergo entry: {data:?}", + created_by.user.name + ), ) .await; @@ -176,7 +179,10 @@ async fn new_dozen( Log::create( db, - format!("{created_by:?} created dozen-ergo entry: {data:?}"), + format!( + "{} created dozen-ergo entry: {data:?}", + created_by.user.name + ), ) .await; diff --git a/templates/ergo.html.tera b/templates/ergo.html.tera index 2ecc90f..3d58e73 100644 --- a/templates/ergo.html.tera +++ b/templates/ergo.html.tera @@ -20,7 +20,7 @@ {% endfor %} {{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }} - + @@ -40,7 +40,7 @@ {% endfor %} {{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }} - +