aboutsummaryrefslogtreecommitdiff
path: root/templates/status.tmpl
diff options
context:
space:
mode:
authorHyphen <hyphen@tfwno.gf>2020-09-02 19:50:48 +0200
committerr <r@freesoftwareextremist.com>2020-09-03 04:49:11 +0000
commit28695fb8e6b299389347fc8c42f7dc3923b42f24 (patch)
tree21d2690cb09f86c81fb4d85e86beff9fb5602450 /templates/status.tmpl
parent71c5da7b3b9e816caa52dbf9e332c5b10112c93d (diff)
downloadbloat-28695fb8e6b299389347fc8c42f7dc3923b42f24.tar.gz
bloat-28695fb8e6b299389347fc8c42f7dc3923b42f24.zip
Add the Anti Dopamine feature
Diffstat (limited to 'templates/status.tmpl')
-rw-r--r--templates/status.tmpl12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl
index 3c0533b..de0909b 100644
--- a/templates/status.tmpl
+++ b/templates/status.tmpl
@@ -160,7 +160,9 @@
reply
</a>
<a class="status-reply-count" href="/thread/{{.ID}}#status-{{.ID}}" {{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}>
- {{if .RepliesCount}} ({{DisplayInteractionCount .RepliesCount}}) {{end}}
+ {{if and (not $.Ctx.AntiDopamineMode) .RepliesCount}}
+ ({{DisplayInteractionCount .RepliesCount}})
+ {{end}}
</a>
</div>
<div class="status-action">
@@ -184,7 +186,9 @@
{{end}}
{{end}}
<a class="status-retweet-count" href="/retweetedby/{{.ID}}" title="click to see the the list">
- {{if .ReblogsCount}} ({{DisplayInteractionCount .ReblogsCount}}) {{end}}
+ {{if and (not $.Ctx.AntiDopamineMode) .ReblogsCount}}
+ ({{DisplayInteractionCount .ReblogsCount}})
+ {{end}}
</a>
</div>
<div class="status-action">
@@ -202,7 +206,9 @@
</form>
{{end}}
<a class="status-like-count" href="/likedby/{{.ID}}" title="click to see the the list">
- {{if .FavouritesCount}} ({{DisplayInteractionCount .FavouritesCount}}) {{end}}
+ {{if and (not $.Ctx.AntiDopamineMode) .FavouritesCount}}
+ ({{DisplayInteractionCount .FavouritesCount}})
+ {{end}}
</a>
</div>
<div class="status-action">