diff options
author | Denys Konovalov <kontakt@denyskon.de> | 2023-09-24 22:31:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-24 20:31:58 +0000 |
commit | 2325fe777dcb8c8bbaea84718dcfbdc298d33304 (patch) | |
tree | 3b9977d47bbc50de83e1ffd5cb7411a4568c9fb8 /templates/repo/actions | |
parent | 3a187eace5643a3dc681f87bdd8d0edbb742aa8f (diff) | |
download | gitea-2325fe777dcb8c8bbaea84718dcfbdc298d33304.tar.gz gitea-2325fe777dcb8c8bbaea84718dcfbdc298d33304.zip |
cleanup locale function usage (#27227)
Diffstat (limited to 'templates/repo/actions')
-rw-r--r-- | templates/repo/actions/runs_list.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/actions/status.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/actions/runs_list.tmpl b/templates/repo/actions/runs_list.tmpl index 961dd52c62..34b9547029 100644 --- a/templates/repo/actions/runs_list.tmpl +++ b/templates/repo/actions/runs_list.tmpl @@ -8,7 +8,7 @@ {{range .Runs}} <div class="flex-item gt-ac"> <div class="flex-item-leading"> - {{template "repo/actions/status" (dict "status" .Status.String "locale" $.locale)}} + {{template "repo/actions/status" (dict "status" .Status.String)}} </div> <div class="flex-item-main"> <a class="flex-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}"> diff --git a/templates/repo/actions/status.tmpl b/templates/repo/actions/status.tmpl index cdc747aa8b..5016570142 100644 --- a/templates/repo/actions/status.tmpl +++ b/templates/repo/actions/status.tmpl @@ -12,7 +12,7 @@ {{- $className = .className -}} {{- end -}} -<span class="gt-df gt-ac" data-tooltip-content="{{.locale.Tr (printf "actions.status.%s" .status)}}"> +<span class="gt-df gt-ac" data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}"> {{if eq .status "success"}} {{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}} {{else if eq .status "skipped"}} |