diff options
author | r <r@freesoftwareextremist.com> | 2024-02-12 05:51:06 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2024-02-12 05:51:06 +0000 |
commit | 6ad1c5436ae4b623143db9def4b160213456a69e (patch) | |
tree | 62cb56595a2cd5d1eb19b68df9fd2aec44368fc5 /templates | |
parent | 11ea3b4d47a732fe1c6abc39ce452f899f70859f (diff) | |
download | bloat-6ad1c5436ae4b623143db9def4b160213456a69e.tar.gz bloat-6ad1c5436ae4b623143db9def4b160213456a69e.zip |
Show follow request count on user page
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user.tmpl | 4 |
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> |