From 4fcfed5ddb00d9d37ba1c1d787b2124c0326897c Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 7 Dec 2021 01:22:14 +0300 Subject: Add indicators on private posts --- src/frontend/templates/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/frontend/templates') diff --git a/src/frontend/templates/mod.rs b/src/frontend/templates/mod.rs index dbc23c9..e6dec51 100644 --- a/src/frontend/templates/mod.rs +++ b/src/frontend/templates/mod.rs @@ -98,6 +98,11 @@ markup::define! { } } } + @if post["properties"]["visibility"][0].as_str().unwrap_or("public") != "public" { + span."p-visibility"[value=post["properties"]["visibility"][0].as_str().unwrap()] { + @post["properties"]["visibility"][0].as_str().unwrap() + } + } @if post["properties"]["category"].is_array() { span { ul.categories { -- cgit 1.4.1