aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2024-02-12 05:51:06 +0000
committerr <r@freesoftwareextremist.com>2024-02-12 05:51:06 +0000
commit6ad1c5436ae4b623143db9def4b160213456a69e (patch)
tree62cb56595a2cd5d1eb19b68df9fd2aec44368fc5 /templates
parent11ea3b4d47a732fe1c6abc39ce452f899f70859f (diff)
downloadbloat-6ad1c5436ae4b623143db9def4b160213456a69e.tar.gz
bloat-6ad1c5436ae4b623143db9def4b160213456a69e.zip
Show follow request count on user page
Diffstat (limited to 'templates')
-rw-r--r--templates/user.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/user.tmpl b/templates/user.tmpl
index f34a9df..4323b2f 100644
--- a/templates/user.tmpl
+++ b/templates/user.tmpl
@@ -110,7 +110,9 @@
- <a href="/user/{{.User.ID}}/likes">likes</a>
- <a href="/user/{{.User.ID}}/mutes">mutes</a>
- <a href="/user/{{.User.ID}}/blocks">blocks</a>
- {{if .User.Locked}}- <a href="/user/{{.User.ID}}/requests">requests</a>{{end}}
+ {{if .User.Locked}}- <a href="/user/{{.User.ID}}/requests">requests (
+ {{- if .User.FollowRequestsCount}}{{.User.FollowRequestsCount}}{{else}}{{.User.Source.FollowRequestsCount}}{{end -}}
+ )</a>{{end}}
</div>
{{end}}
<div>