From 3f80cb498cb94564935b829cd4b469b9cfbc2d91 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 24 Apr 2024 08:57:41 +0200 Subject: [PATCH] format tera w/ linter --- templates/includes/forms/log.html.tera | 31 ++++++++++++-------------- templates/includes/macros.html.tera | 18 +++++++++------ templates/kiosk.html.tera | 28 +++++++++++------------ templates/log.html.tera | 8 +++---- 4 files changed, 43 insertions(+), 42 deletions(-) diff --git a/templates/includes/forms/log.html.tera b/templates/includes/forms/log.html.tera index ca71edd..42fbbca 100644 --- a/templates/includes/forms/log.html.tera +++ b/templates/includes/forms/log.html.tera @@ -14,28 +14,25 @@ {% else %} Vereinsfremde Boote {% endif %} - - - ({{ grouped_boats | length }}) - + + ({{ grouped_boats | length }})
- {% for boat in grouped_boats | sort(attribute="name") %} -
- - {{ boat.name }} - {% if boat.owner %}(privat){% endif %} - -
- {% endfor %} + {% for boat in grouped_boats | sort(attribute="name") %} +
+ + {{ boat.name }} + {% if boat.owner %}(privat){% endif %} + +
+ {% endfor %}
- + {% endfor %} {% endmacro show_boats %} - {# Shows the form for creating a new logbook entry. #} {% macro new(shipmaster) %}
(Gast) {% if allow_removing %} - - - - Abmelden + class="absolute r-0 bg-red-500 w-5 h-5 text-white rounded-full flex items-center justify-center transform rotate-45 top-0 right-0"> + + + + Abmelden {% endif %} {% endif %} - + {% endfor %} {% else %} diff --git a/templates/kiosk.html.tera b/templates/kiosk.html.tera index 4969f73..500e584 100644 --- a/templates/kiosk.html.tera +++ b/templates/kiosk.html.tera @@ -18,25 +18,25 @@
-

Neue Ausfahrt

-
{{ log::new(only_ones=false, shipmaster=-1) }}
+

Neue Ausfahrt

+
{{ log::new(only_ones=false, shipmaster=-1) }}
diff --git a/templates/log.html.tera b/templates/log.html.tera index 741186c..5650da0 100644 --- a/templates/log.html.tera +++ b/templates/log.html.tera @@ -12,10 +12,10 @@
-
-

Neue Ausfahrt

-
{{ log::new(shipmaster=loggedin_user.id) }}
-
+
+

Neue Ausfahrt

+
{{ log::new(shipmaster=loggedin_user.id) }}
+