From ea42d3c04ef48b9ff0354ea196179d1a5025c04a Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Thu, 18 Nov 2021 00:50:17 +0100 Subject: Fixed commit count. (#17698) Added "Tag" label. Unified branch, tag and commit name. --- routers/web/repo/view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/web/repo/view.go') 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() -- cgit v1.2.3