mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-05 09:49:37 +08:00
parent
1f7802db97
commit
ad789542b8
@ -465,6 +465,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")
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
{{if .LFSLock}}
|
||||
<div class="file-info-entry ui tooltip" data-content="{{.LFSLockHint}}">
|
||||
{{svg "octicon-lock" 16 "mr-2"}}
|
||||
<a href="{{.LFSLock.Owner.HomeLink}}">{{.LFSLockOwner}}</a>
|
||||
<a href="{{.LFSLockOwnerHomeLink}}">{{.LFSLockOwner}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user