diff options
author | metamuffin <metamuffin@disroot.org> | 2024-05-04 14:15:24 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-05-04 14:15:24 +0200 |
commit | a4d49095d1fa40fc7152d069006d1121300235bb (patch) | |
tree | 22577936ef637df2c859be2259d004ba29b6ae2b /src/web.rs | |
parent | 24b10f4d389fcc5c23406eceef5d6e9a35551d21 (diff) | |
download | statuspage-a4d49095d1fa40fc7152d069006d1121300235bb.tar statuspage-a4d49095d1fa40fc7152d069006d1121300235bb.tar.bz2 statuspage-a4d49095d1fa40fc7152d069006d1121300235bb.tar.zst |
embed font
Diffstat (limited to 'src/web.rs')
-rw-r--r-- | src/web.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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!( |