diff options
author | delvh <dev.lh@web.de> | 2023-09-25 10:56:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-25 08:56:50 +0000 |
commit | 7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e (patch) | |
tree | cfcc4836ba1bb71518742f2aaf980f1f34248468 /templates/repo/actions/runs_list.tmpl | |
parent | e6d8b146207de0f5d88b7c08dc75b1f2f078cbbe (diff) | |
download | gitea-7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e.tar.gz gitea-7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e.zip |
Always use `ctx.Locale.Tr` inside templates (#27231)
Diffstat (limited to 'templates/repo/actions/runs_list.tmpl')
-rw-r--r-- | templates/repo/actions/runs_list.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/actions/runs_list.tmpl b/templates/repo/actions/runs_list.tmpl index 34b9547029..df8dba0309 100644 --- a/templates/repo/actions/runs_list.tmpl +++ b/templates/repo/actions/runs_list.tmpl @@ -2,7 +2,7 @@ {{if eq (len .Runs) 0}} <div class="empty center"> {{svg "octicon-no-entry" 48}} - <h2>{{if $.IsFiltered}}{{.locale.Tr "actions.runs.no_results"}}{{else}}{{.locale.Tr "actions.runs.no_runs"}}{{end}}</h2> + <h2>{{if $.IsFiltered}}{{ctx.Locale.Tr "actions.runs.no_results"}}{{else}}{{.locale.Tr "actions.runs.no_runs"}}{{end}}</h2> </div> {{end}} {{range .Runs}} @@ -17,11 +17,11 @@ <div class="flex-item-body"> <b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>: {{- if .ScheduleID -}} - {{$.locale.Tr "actions.runs.scheduled"}} + {{ctx.Locale.Tr "actions.runs.scheduled"}} {{- else -}} - {{$.locale.Tr "actions.runs.commit"}} + {{ctx.Locale.Tr "actions.runs.commit"}} <a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a> - {{$.locale.Tr "actions.runs.pushed_by"}} + {{ctx.Locale.Tr "actions.runs.pushed_by"}} <a href="{{.TriggerUser.HomeLink}}">{{.TriggerUser.GetDisplayName}}</a> {{- end -}} </div> |