diff --git a/.gitignore b/.gitignore index d17d371..6b4b2c7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ db.sqlite Rocket.toml frontend/node_modules/* /static/ +/data-ergo/ diff --git a/frontend/main.ts b/frontend/main.ts index 640f60a..625abd6 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -68,19 +68,21 @@ function selectBoatChange() { } function reloadPage() { - let pageTitle = document.title; - let attentionMessage = 'Riemen- und Dollenbruch'; + if (!window.location.href.includes("ergo")){ + let pageTitle = document.title; + let attentionMessage = 'Riemen- und Dollenbruch'; - document.addEventListener('visibilitychange', function() { - let isPageActive = !document.hidden; + document.addEventListener('visibilitychange', function() { + let isPageActive = !document.hidden; - if(!isPageActive){ - document.title = attentionMessage; - } else { - document.title = pageTitle; - location.reload(); - } - }); + if(!isPageActive){ + document.title = attentionMessage; + } else { + document.title = pageTitle; + location.reload(); + } + }); + } } function setMaxAmountRowers(name: string, rowers: number) { diff --git a/templates/ergo.html.tera b/templates/ergo.html.tera index 2ecc90f..3385611 100644 --- a/templates/ergo.html.tera +++ b/templates/ergo.html.tera @@ -7,6 +7,19 @@ {% if flash %} {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }} {% endif %} +
+ Deine Daten +

+ Folgende Daten hat der Ruderassistent von dir. Wenn diese nicht mehr aktuell sind, bitte gewünschte Änderungen an Philipp melden (Tel. nr siehe Signal, oder an it@rudernlinz.at). +

+

+

+
+

Neuer Eintrag

Dirty Thirty @@ -16,11 +29,15 @@ {{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }} - + @@ -36,11 +53,15 @@ {{ macros::input(label="Zeit [(hh:)mm:ss]/Distanz [m]", name="result", required=true, type="text", class="input") }} - +