diff options
author | Vika <vika@fireburn.ru> | 2021-12-07 01:22:14 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-12-07 01:22:14 +0300 |
commit | 4fcfed5ddb00d9d37ba1c1d787b2124c0326897c (patch) | |
tree | 195a57ea3bb851f3f4d146eb741b2544236a4894 | |
parent | c02037628e36e71e528b3c76ffb88dc103d73228 (diff) | |
download | kittybox-4fcfed5ddb00d9d37ba1c1d787b2124c0326897c.tar.zst |
Add indicators on private posts
-rw-r--r-- | src/frontend/templates/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |