diff --git a/src/main.rs b/src/main.rs index a7d56c7..7a8e434 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ async fn index(mut db: Connection) -> Redirect { #[launch] fn rocket() -> _ { rocket::build() - .mount("/", FileServer::from(relative!("static_files"))) + .mount("/static/", FileServer::from(relative!("static_files"))) .attach(auth::stage()) .attach(week::stage()) .attach(truth::stage()) diff --git a/templates/index.html.tera b/templates/index.html.tera index e10d6f5..ff9a273 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -4,12 +4,13 @@ {{ title }} - + + {% if user.logged_in == true and not user.is_admin %} - + {% endif %} - + {#{% import "week_change_arrows" as week_macro %}#}