remove log from page
This commit is contained in:
parent
e30dae68ad
commit
e49279afef
@ -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())
|
||||
|
@ -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%}
|
||||
|
Loading…
Reference in New Issue
Block a user