From 49470348afb49ceab9fece12eac5f73e20815d00 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 4 May 2024 17:33:10 +0200 Subject: mention date and software in footer --- src/style.css | 13 ++++++++++--- 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 { diff --git a/src/web.rs b/src/web.rs index 8aa7a2a..c7bff3d 100644 --- a/src/web.rs +++ b/src/web.rs @@ -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) -> String { } } } + footer { + "Generated " @Utc::now().to_rfc2822() " by " a[href="https://codeberg.org/metamuffin/statuspage"]{ "statuspage" } "." + } } } } -- cgit v1.2.3-70-g09d2