From 6ff0d3355c487dbdc13403ec32f5e587c7f93073 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 14 Apr 2025 11:18:18 +0200 Subject: [feature/frontend] Add visibility icon for posts (#4005) --- web/template/status_info.tmpl | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'web/template/status_info.tmpl') diff --git a/web/template/status_info.tmpl b/web/template/status_info.tmpl index 194a799f5..5d26811d7 100644 --- a/web/template/status_info.tmpl +++ b/web/template/status_info.tmpl @@ -17,9 +17,36 @@ // along with this program. If not, see . */ -}} +{{- define "visibility_icon" -}} + {{- if eq .Visibility "public" -}} + globe + {{- else if eq .Visibility "unlisted" -}} + unlock + {{- else -}} + question + {{- end -}} +{{- end -}} + +{{- define "visibility_title" -}} + {{- if eq .Visibility "public" -}} + Public + {{- else if eq .Visibility "unlisted" -}} + Unlisted + {{- else -}} + Unknown + {{- end -}} +{{- end -}} + {{- with . }}
+
+
Visibility
+
+ + {{- template "visibility_title" . -}} +
+
Published
@@ -30,7 +57,7 @@
Edited
- (edited ) + edited
{{ end }} -- cgit v1.3