From 2678f33157d147ba548793709cd8fbaabb4eaae2 Mon Sep 17 00:00:00 2001 From: r Date: Sat, 21 Dec 2019 13:26:31 +0000 Subject: Add support for scopes - Add scope selection for for new post - Save new post scope in db - Copy scope on reply - Show scope icon on posts --- templates/status.tmpl | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'templates/status.tmpl') diff --git a/templates/status.tmpl b/templates/status.tmpl index 0e6f0c0..a89fc78 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -26,6 +26,17 @@ {{.Account.Acct}} + + {{if eq .Visibility "public"}} + + {{else if eq .Visibility "unlisted"}} + + {{else if eq .Visibility "private"}} + + {{else if eq .Visibility "direct"}} + + {{end}} + {{end}}
@@ -68,16 +79,23 @@ {{DisplayInteractionCount .RepliesCount}} - {{if .Reblogged}} - - - {{DisplayInteractionCount .ReblogsCount}} - - {{else}} - + {{if or (eq .Visibility "private") (eq .Visibility "direct")}} + {{DisplayInteractionCount .ReblogsCount}} + {{else}} + {{if .Reblogged}} + + + {{DisplayInteractionCount .ReblogsCount}} + + {{else}} + + + {{DisplayInteractionCount .ReblogsCount}} + + {{end}} {{end}} {{if .Favourited}} -- cgit v1.2.3