mirror of
https://github.com/go-gitea/gitea
synced 2025-07-27 12:48:37 +00:00
Always use ctx.Locale.Tr
inside templates (#27231)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<div class="navbar gt-mb-4">
|
||||
{{template "repo/issue/navbar" .}}
|
||||
{{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
|
||||
<button class="ui small primary new-label button">{{.locale.Tr "repo.issues.new_label"}}</button>
|
||||
<button class="ui small primary new-label button">{{ctx.Locale.Tr "repo.issues.new_label"}}</button>
|
||||
{{end}}
|
||||
</div>
|
||||
{{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}}
|
||||
|
Reference in New Issue
Block a user