Add headers to follower lists

This commit is contained in:
0ko 2024-06-18 20:53:27 +05:00
commit 53215726e1
5 changed files with 142 additions and 4 deletions

View file

@ -183,9 +183,11 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb
case "followers":
ctx.Data["Cards"] = followers
total = int(numFollowers)
ctx.Data["CardsTitle"] = ctx.TrN(total, "user.followers.title.one", "user.followers.title.few")
case "following":
ctx.Data["Cards"] = following
total = int(numFollowing)
ctx.Data["CardsTitle"] = ctx.TrN(total, "user.following.title.one", "user.following.title.few")
case "activity":
date := ctx.FormString("date")
pagingNum = setting.UI.FeedPagingNum