~vpzom/hitide

f856b2be4fd67785ba8791df8481bb5037659ecf — Colin Reeder 5 days ago d405e70
Add nothing text to notifications page (#76)
1 files changed, 7 insertions(+), 0 deletions(-)

M src/routes/mod.rs
M src/routes/mod.rs => src/routes/mod.rs +7 -0
@@ 952,6 952,13 @@ async fn page_notifications(
            Ok(html_response(render::html! {
                <HTPage base_data={&base_data} lang={&lang} title={&title}>
                    <h1>{title.as_ref()}</h1>
                    {
                        if notifications.is_empty() {
                            Some(render::rsx! { <p>{lang.tr("nothing", None)}</p> })
                        } else {
                            None
                        }
                    }
                    <ul>
                        {
                            notifications.iter()