From fbad517b56563ccb0b3d81bbcede85761b0e79fa Mon Sep 17 00:00:00 2001 From: philipp Date: Fri, 25 Oct 2024 20:57:21 +0200 Subject: [PATCH] Ergo Challenge not Ergo-Challenge. Sth. completely different --- src/tera/ergo.rs | 6 +++--- templates/ergo/index.html.tera | 2 +- templates/ergo/missing-data.html.tera | 4 ++-- templates/index.html.tera | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/tera/ergo.rs b/src/tera/ergo.rs index 1c3e334..a029a7b 100644 --- a/src/tera/ergo.rs +++ b/src/tera/ergo.rs @@ -172,7 +172,7 @@ async fn new_user( // inform all other `ergo` users let ergo = Role::find_by_name(db, "ergo").await.unwrap(); - Notification::create_for_role(db, &ergo, &format!("{} nimmt heuer an der Ergochallenge teil 💪", user.name), "Ergo-Challenge", None, None).await; + Notification::create_for_role(db, &ergo, &format!("{} nimmt heuer an der Ergochallenge teil 💪", user.name), "Ergo Challenge", None, None).await; // add to `ergo` group user.add_role(db,&ergo).await.unwrap(); @@ -226,7 +226,7 @@ async fn new_thirty( .await; let ergo = Role::find_by_name(db, "ergo").await.unwrap(); - Notification::create_for_role(db, &ergo, &format!("{} ist gerade die Dirty Thirty Challenge gefahren 🥵", user.name), "Ergo-Challenge", Some("/ergo"), None).await; + Notification::create_for_role(db, &ergo, &format!("{} ist gerade die Dirty Thirty Challenge gefahren 🥵", user.name), "Ergo Challenge", Some("/ergo"), None).await; Flash::success(Redirect::to("/ergo"), "Erfolgreich eingetragen") } @@ -270,7 +270,7 @@ async fn new_dozen( .await; let ergo = Role::find_by_name(db, "ergo").await.unwrap(); - Notification::create_for_role(db, &ergo, &format!("{} ist gerade die Dirty Dozen Challenge gefahren 🥵", user.name), "Ergo-Challenge", Some("/ergo"), None).await; + Notification::create_for_role(db, &ergo, &format!("{} ist gerade die Dirty Dozen Challenge gefahren 🥵", user.name), "Ergo Challenge", Some("/ergo"), None).await; Flash::success(Redirect::to("/ergo"), "Erfolgreich eingetragen") } diff --git a/templates/ergo/index.html.tera b/templates/ergo/index.html.tera index 7dbdcd8..4d3f010 100644 --- a/templates/ergo/index.html.tera +++ b/templates/ergo/index.html.tera @@ -6,7 +6,7 @@