summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-04-15 03:29:05 +0800
committerGitHub <noreply@github.com>2023-04-14 15:29:05 -0400
commit2902d1e9d193a157bccd46cdda449de5443a2fd8 (patch)
treec443573b022bbe1266cc08900585eb8d97fa93bf /routers
parented81b608cb5bd94ef518393cdd724c4fac1215d4 (diff)
downloadgitea-2902d1e9d193a157bccd46cdda449de5443a2fd8.tar.gz
gitea-2902d1e9d193a157bccd46cdda449de5443a2fd8.zip
Sort repo topic labels by name (#24123)
Close #24077
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/blame.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/routers/web/repo/blame.go b/routers/web/repo/blame.go
index 3546334ed6..0e232c194c 100644
--- a/routers/web/repo/blame.go
+++ b/routers/web/repo/blame.go
@@ -12,7 +12,6 @@ import (
repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
- "code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/charset"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
@@ -23,10 +22,6 @@ import (
"code.gitea.io/gitea/modules/util"
)
-const (
- tplBlame base.TplName = "repo/home"
-)
-
type blameRow struct {
RowNumber int
Avatar gotemplate.HTML
@@ -140,7 +135,7 @@ func RefBlame(ctx *context.Context) {
renderBlame(ctx, blameParts, commitNames, previousCommits)
- ctx.HTML(http.StatusOK, tplBlame)
+ ctx.HTML(http.StatusOK, tplRepoHome)
}
func processBlameParts(ctx *context.Context, blameParts []git.BlamePart) (map[string]*user_model.UserCommit, map[string]string) {