From 2ee5c1709d9718474ce277e71d159b2b2e6436c8 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 19 Oct 2020 06:05:22 +0000 Subject: Simplify retweet/like form --- templates/status.tmpl | 46 ++++++++++++++++------------------------------ 1 file changed, 16 insertions(+), 30 deletions(-) (limited to 'templates') diff --git a/templates/status.tmpl b/templates/status.tmpl index 6c255a0..438f023 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -187,45 +187,31 @@ retweet {{else}} - {{if .Reblogged}} -
+ {{$rt := "retweet"}} {{if .Reblogged}} {{$rt = "unretweet"}} {{end}} + - -
- {{else}} -
- - - + + + {{if and (not $.Ctx.AntiDopamineMode) .ReblogsCount}} + ({{DisplayInteractionCount .ReblogsCount}}) + {{end}} +
{{end}} - {{end}} - - {{if and (not $.Ctx.AntiDopamineMode) .ReblogsCount}} - ({{DisplayInteractionCount .ReblogsCount}}) - {{end}} -
- {{if .Favourited}} -
+ {{$like := "like"}} {{if .Favourited}} {{$like = "unlike"}} {{end}} + - -
- {{else}} -
- - - + + + {{if and (not $.Ctx.AntiDopamineMode) .FavouritesCount}} + ({{DisplayInteractionCount .FavouritesCount}}) + {{end}} +
- {{end}} - - {{if and (not $.Ctx.AntiDopamineMode) .FavouritesCount}} - ({{DisplayInteractionCount .FavouritesCount}}) - {{end}} -