aboutsummaryrefslogtreecommitdiff
path: root/src/web.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-05-04 14:15:24 +0200
committermetamuffin <metamuffin@disroot.org>2024-05-04 14:15:24 +0200
commita4d49095d1fa40fc7152d069006d1121300235bb (patch)
tree22577936ef637df2c859be2259d004ba29b6ae2b /src/web.rs
parent24b10f4d389fcc5c23406eceef5d6e9a35551d21 (diff)
downloadstatuspage-a4d49095d1fa40fc7152d069006d1121300235bb.tar
statuspage-a4d49095d1fa40fc7152d069006d1121300235bb.tar.bz2
statuspage-a4d49095d1fa40fc7152d069006d1121300235bb.tar.zst
embed font
Diffstat (limited to 'src/web.rs')
-rw-r--r--src/web.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/web.rs b/src/web.rs
index b0d2ca9..8aa7a2a 100644
--- a/src/web.rs
+++ b/src/web.rs
@@ -1,10 +1,9 @@
use crate::{log::LOG, Check, Config, Service, Status, STATUS};
-use axum::response::Html;
use chrono::SubsecRound;
use markup::{doctype, Render};
use std::{collections::BTreeMap, ops::Deref, sync::Arc};
-pub async fn send_html_page(config: Arc<Config>) -> Html<String> {
+pub async fn make_html_page(config: Arc<Config>) -> String {
let mut out = String::new();
let status = STATUS.read().await;
let status = status.deref();
@@ -54,7 +53,7 @@ pub async fn send_html_page(config: Arc<Config>) -> Html<String> {
}
.render(&mut out)
.unwrap();
- Html(out)
+ out
}
markup::define!(