summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-03-02 07:14:27 +0800
committerGitHub <noreply@github.com>2022-03-01 23:14:27 +0000
commit38f63221642815076599954155174aae008c2d20 (patch)
tree625971a8877bdc677f54b7b808fb1fb256dcc0ea /templates/repo/settings
parentaee0fa68a71f03b65460597af3f37a3f4c4a04dc (diff)
downloadgitea-38f63221642815076599954155174aae008c2d20.tar.gz
gitea-38f63221642815076599954155174aae008c2d20.zip
Fix lfs management setting (#18946)
Fix #18782
Diffstat (limited to 'templates/repo/settings')
-rw-r--r--templates/repo/settings/lfs_locks.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/settings/lfs_locks.tmpl b/templates/repo/settings/lfs_locks.tmpl
index 6f52358708..d30575a057 100644
--- a/templates/repo/settings/lfs_locks.tmpl
+++ b/templates/repo/settings/lfs_locks.tmpl
@@ -24,7 +24,7 @@
<td>
{{if index $.Linkable $index}}
{{svg "octicon-file"}}
- <a href="{{$.RepoLink}}/src/branch/{{PathEscapeSegments $lock.Repo.DefaultBranch}}/{{PathEscapeSegments $lock.Path}}" title="{{$lock.Path}}">{{$lock.Path}}</a>
+ <a href="{{$.RepoLink}}/src/branch/{{PathEscapeSegments $.Repository.DefaultBranch}}/{{PathEscapeSegments $lock.Path}}" title="{{$lock.Path}}">{{$lock.Path}}</a>
{{else}}
{{svg "octicon-diff"}}
<span class="tooltip" title="{{$.i18n.Tr "repo.settings.lfs_lock_file_no_exist"}}">{{$lock.Path}}</span>
@@ -34,9 +34,9 @@
{{end}}
</td>
<td>
- <a href="{{$lock.Owner.HomeLink}}">
- {{avatar $lock.Owner}}
- {{$lock.Owner.DisplayName}}
+ <a href="{{$.Owner.HomeLink}}">
+ {{avatar $.Owner}}
+ {{$.Owner.DisplayName}}
</a>
</td>
<td>{{TimeSince .Created $.i18n.Lang}}</td>