diff options
author | metamuffin <metamuffin@disroot.org> | 2024-05-04 17:33:10 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-05-04 17:33:10 +0200 |
commit | 49470348afb49ceab9fece12eac5f73e20815d00 (patch) | |
tree | a9af7352e4d47ebdd149ae0d17a4e2eca1e03430 | |
parent | a4d49095d1fa40fc7152d069006d1121300235bb (diff) | |
download | statuspage-49470348afb49ceab9fece12eac5f73e20815d00.tar statuspage-49470348afb49ceab9fece12eac5f73e20815d00.tar.bz2 statuspage-49470348afb49ceab9fece12eac5f73e20815d00.tar.zst |
mention date and software in footer
-rw-r--r-- | src/style.css | 13 | ||||
-rw-r--r-- | src/web.rs | 5 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/style.css b/src/style.css index 4d6abc2..0ebbed6 100644 --- a/src/style.css +++ b/src/style.css @@ -23,6 +23,13 @@ h1 { color: black; text-align: center; } +footer { + text-align: center; + margin-bottom: 5em; +} +a { + font-weight: bold; +} h2 { margin: 0.5em; @@ -43,9 +50,7 @@ div.service.ok { div.service.error { border-top: 12px solid rgb(255, 80, 80); } - div.service a { - font-weight: bold; color: black; float: inline-end; } @@ -62,7 +67,9 @@ div.checks span { } span.details.ok, -span.time { +span.time, +footer, +footer a { color: rgb(173, 173, 173); } span.status { @@ -1,5 +1,5 @@ use crate::{log::LOG, Check, Config, Service, Status, STATUS}; -use chrono::SubsecRound; +use chrono::{SubsecRound, Utc}; use markup::{doctype, Render}; use std::{collections::BTreeMap, ops::Deref, sync::Arc}; @@ -47,6 +47,9 @@ pub async fn make_html_page(config: Arc<Config>) -> String { } } } + footer { + "Generated " @Utc::now().to_rfc2822() " by " a[href="https://codeberg.org/metamuffin/statuspage"]{ "statuspage" } "." + } } } } |