From 0c65d13d49f824d18d56721f7b8dd6458d7b6e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 9 Oct 2020 23:00:15 +0200 Subject: [PATCH] add link to repo --- src/main.rs | 1 + templates/main.html | 186 ++++++++++++++++++++++++-------------------- 2 files changed, 104 insertions(+), 83 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7f7ad4e..8d1e850 100644 --- a/src/main.rs +++ b/src/main.rs @@ -186,6 +186,7 @@ async fn render( "mtime", &mtime.map_or("???".to_string(), |t| t.format("%c").to_string()), ); + context.insert("version", VERSION); Ok(HttpResponse::Ok().body( state diff --git a/templates/main.html b/templates/main.html index 890010b..480e110 100644 --- a/templates/main.html +++ b/templates/main.html @@ -1,84 +1,104 @@ - - - - - {{garden_title}} - {{page_title}} - - - - - - -
- {{content | safe}} - -
- Last modified at {{mtime}} -
-
- + + + + + {{garden_title}} - {{page_title}} + + + + + + +
+ {{content | safe}} + + +
+ \ No newline at end of file