diff options
Diffstat (limited to 'ui/src/components/admin_log.rs')
| -rw-r--r-- | ui/src/components/admin_log.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/src/components/admin_log.rs b/ui/src/components/admin_log.rs index abec7fe..f521aae 100644 --- a/ui/src/components/admin_log.rs +++ b/ui/src/components/admin_log.rs @@ -4,6 +4,7 @@ Copyright (C) 2026 metamuffin <metamuffin.org> */ +use crate::{RenderInfo, page}; use jellycommon::{ internal::{LogLevel, LogLine}, routes::u_admin_log, @@ -11,8 +12,11 @@ use jellycommon::{ use markup::raw; use std::fmt::Write; +page!(ServerLogPage<'_>, |_| "Server Log".into()); + markup::define! { - ServerLogPage<'a>(warnonly: bool, messages: &'a [String]) { + ServerLogPage<'a>(ri: &'a RenderInfo<'a>, warnonly: bool, messages: &'a [String]) { + @let _ = ri; h1 { "Server Log" } a[href=u_admin_log(!warnonly)] { @if *warnonly { "Show everything" } else { "Show only warnings" }} code.log[id="log"] { |