diff options
Diffstat (limited to 'src/routes/posts.rs')
-rw-r--r-- | src/routes/posts.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/posts.rs b/src/routes/posts.rs index 86a3134..2f26686 100644 --- a/src/routes/posts.rs +++ b/src/routes/posts.rs @@ -48,6 +48,13 @@ async fn page_post( Ok(html_response(render::html! { <HTPage base_data={&base_data} lang={&lang} title={title}> + { + if post.approved { + None + } else { + Some(render::rsx! { <div class={"infoBox"}>{lang.tr("post_not_approved", None)}</div> }) + } + } <h1>{title}</h1> <p> <a href={format!("/posts/{}/likes", post_id)}> |