remove log from page

This commit is contained in:
philipp 2023-07-30 13:02:29 +02:00
parent e30dae68ad
commit e49279afef
2 changed files with 2 additions and 11 deletions

View File

@ -47,7 +47,6 @@ async fn index(
let distances = Logbook::distances(db).await;
let on_water = Logbook::on_water(db).await;
let completed = Logbook::completed(db).await;
let mut context = Context::new();
if let Some(msg) = flash {
@ -60,7 +59,6 @@ async fn index(
context.insert("logtypes", &logtypes);
context.insert("loggedin_user", &adminuser.user);
context.insert("on_water", &on_water);
context.insert("completed", &completed);
context.insert("distances", &distances);
Template::render("log", context.into_json())
@ -87,7 +85,6 @@ async fn kiosk(
let distances = Logbook::distances(db).await;
let on_water = Logbook::on_water(db).await;
let completed = Logbook::completed(db).await;
let mut context = Context::new();
if let Some(msg) = flash {
@ -99,7 +96,6 @@ async fn kiosk(
context.insert("users", &users);
context.insert("logtypes", &logtypes);
context.insert("on_water", &on_water);
context.insert("completed", &completed);
context.insert("distances", &distances);
Template::render("kiosk", context.into_json())

View File

@ -8,6 +8,7 @@
{% if flash %}
{{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }}
{% endif %}
<div class="max-w-screen-lg w-full">
<h1 class="h1">Logbuch</h1>
<h2>Neue Ausfahrt starten</h2>
@ -18,12 +19,6 @@
{{ log::show(log=log, state="on_water", allowed_to_close=true, only_ones=false) }}
<hr />
{% endfor %}
<h2 style="font-size: 100px">Einträge</h2>
{% for log in completed %}
{{ log::show(log=log, state="completed", only_ones=false) }}
<hr />
{% endfor %}
</div>
{% endblock content%}