aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLunny Xiao2022-03-02 03:14:18 +0800
committerGitHub2022-03-01 14:14:18 -0500
commita765410d0fb332b520aeca6456f785a2c8600c7e (patch)
tree05e2c97f00659429c720c0855fc21834a2cff0a3
parent43fc2e528ca2276337c7368c8346bc043c0c3e36 (diff)
Fix lfs management setting (#18947)
-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 2d311d59e..48b695d50 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 $.Lang}}</td>