diff --git a/src/truth.rs b/src/truth.rs index dd4c0ea..ae96101 100644 --- a/src/truth.rs +++ b/src/truth.rs @@ -53,7 +53,7 @@ pub async fn edit_truth(week: u8, truth_number: u8, form: Form, Redirect::to(uri!("/")) } -#[post("//new", data="
")] +#[post("//new_truth", data="")] pub async fn create_truth(week: u8, form: Form, mut db: Connection, cookies: &CookieJar<'_>) -> Redirect { let user = auth::get_user(week, &mut db, cookies).await; diff --git a/templates/index.html.tera b/templates/index.html.tera index ae99a96..9c8f302 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -91,7 +91,7 @@ {% if user.is_admin == true %}

Nouvelle vérité

- + {% include "truth_editor" %}