aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-02-17 00:22:25 +0800
committerGitHub <noreply@github.com>2022-02-16 11:22:25 -0500
commitf48771ae78b5e5b3caa60c55b3253229ea804ab5 (patch)
tree727bef5ba98500e90ea5b7c6c9526ff7c4f04b15 /routers
parent616146f90400bcf80671410c04926d9dc1f11257 (diff)
downloadgitea-f48771ae78b5e5b3caa60c55b3253229ea804ab5.tar.gz
gitea-f48771ae78b5e5b3caa60c55b3253229ea804ab5.zip
Fix template bug of LFS lock (#18784)
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/view.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go
index 7c6f031907..9ff72b2102 100644
--- a/routers/web/repo/view.go
+++ b/routers/web/repo/view.go
@@ -464,6 +464,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st
return
}
ctx.Data["LFSLockOwner"] = u.DisplayName()
+ ctx.Data["LFSLockOwnerHomeLink"] = u.HomeLink()
ctx.Data["LFSLockHint"] = ctx.Tr("repo.editor.this_file_locked")
}