[GITEA] Detect file rename and show in history (squash) ctx.Locale

This commit is contained in:
Earl Warren 2023-11-06 18:14:54 +01:00
parent e65acf3baf
commit 40447752ff
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -15,7 +15,7 @@
{{template "repo/commits_table" .}}
{{if .OldFilename}}
<div class="ui bottom attached header">
<span>{{.locale.Tr "repo.commits.renamed_from" .OldFilename}} (<a href="{{.OldFilenameHistory}}">{{.locale.Tr "repo.commits.browse_further"}}</a>)</span>
<span>{{ctx.Locale.Tr "repo.commits.renamed_from" .OldFilename}} (<a href="{{.OldFilenameHistory}}">{{ctx.Locale.Tr "repo.commits.browse_further"}}</a>)</span>
</div>
{{end}}
</div>