diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-11-18 00:50:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 23:50:17 +0000 |
commit | ea42d3c04ef48b9ff0354ea196179d1a5025c04a (patch) | |
tree | 8a95df877dae7a5cf62364a525cc532205d5d188 /routers/web/repo/view.go | |
parent | 3c4724d70e4ac7bfc06b97f6fad8936f97479b6b (diff) | |
download | gitea-ea42d3c04ef48b9ff0354ea196179d1a5025c04a.tar.gz gitea-ea42d3c04ef48b9ff0354ea196179d1a5025c04a.zip |
Fixed commit count. (#17698)
Added "Tag" label.
Unified branch, tag and commit name.
Diffstat (limited to 'routers/web/repo/view.go')
-rw-r--r-- | routers/web/repo/view.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 938292a37a..d455dc1039 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -371,7 +371,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st } defer dataRc.Close() - ctx.Data["Title"] = ctx.Data["Title"].(string) + " - " + ctx.Repo.TreePath + " at " + ctx.Repo.BranchName + ctx.Data["Title"] = ctx.Data["Title"].(string) + " - " + ctx.Tr("repo.file.title", ctx.Repo.TreePath, ctx.Repo.RefName) fileSize := blob.Size() ctx.Data["FileIsSymlink"] = entry.IsLink() |