From e51d14b47ccd1facccdf9331045352f1904b5a29 Mon Sep 17 00:00:00 2001 From: Philippe Loctaux Date: Sat, 5 Jul 2025 01:24:00 +0200 Subject: [PATCH] plcom: moved footer to its own function --- crates/plcom/src/views.rs | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/crates/plcom/src/views.rs b/crates/plcom/src/views.rs index 7ea15c1..29f8f0d 100644 --- a/crates/plcom/src/views.rs +++ b/crates/plcom/src/views.rs @@ -8,7 +8,6 @@ pub fn shell(title: &str, children: impl IntoAny) -> AnyView { title.into() }; - let year = jiff::Zoned::now().year(); view! { @@ -36,15 +35,12 @@ pub fn shell(title: &str, children: impl IntoAny) -> AnyView {
{children.into_any()}
- + {footer().into_any()} {stats().into_any()} - }.into_any() + } + .into_any() } pub fn content_page(title: &str, children: impl IntoAny) -> AnyView { @@ -62,7 +58,18 @@ pub fn content_page(title: &str, children: impl IntoAny) -> AnyView { .into_any() } -pub fn stats() -> impl IntoView { +fn footer() -> impl IntoView { + let year = jiff::Zoned::now().year(); + view! { + + } +} + +fn stats() -> impl IntoView { view! {