Fix Activity Page Contributors dropdown (#31264)

Fix #31261

(cherry picked from commit e728fd741be7848d476663eec1c9caaf34b46e61)
This commit is contained in:
wxiaoguang 2024-06-06 10:28:33 +08:00 committed by Mai-Lapyst
parent abde31148f
commit 35447463ba
No known key found for this signature in database
GPG key ID: F88D929C09E239F8
4 changed files with 12 additions and 17 deletions

View file

@ -19,14 +19,8 @@ const (
// Contributors render the page to show repository contributors graph
func Contributors(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("repo.activity.navbar.contributors")
ctx.Data["PageIsActivity"] = true
ctx.Data["PageIsContributors"] = true
ctx.PageData["contributionType"] = "commits"
ctx.PageData["repoLink"] = ctx.Repo.RepoLink
ctx.HTML(http.StatusOK, tplContributors)
}