diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 7c6f03190..9ff72b210 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") } diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index d5308c154..dc62e249b 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -24,7 +24,7 @@ {{if .LFSLock}}
{{svg "octicon-lock" 16 "mr-2"}} - {{.LFSLockOwner}} + {{.LFSLockOwner}}
{{end}}