summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Reeder <colin@vpzom.click>2020-07-29 08:33:39 -0600
committerColin Reeder <colin@vpzom.click>2020-07-29 08:33:39 -0600
commitf856b2be4fd67785ba8791df8481bb5037659ecf (patch)
tree2c4fe0111436a48f839ebfcee16ff1f135004c35
parentd405e70b780e1b8bc7e2014962624911b42b32ad (diff)
Add nothing text to notifications page (#76)
-rw-r--r--src/routes/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/mod.rs b/src/routes/mod.rs
index 4ebe357..355d992 100644
--- a/src/routes/mod.rs
+++ b/src/routes/mod.rs
@@ -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()