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/package | |
parent | 3a187eace5643a3dc681f87bdd8d0edbb742aa8f (diff) | |
download | gitea-2325fe777dcb8c8bbaea84718dcfbdc298d33304.tar.gz gitea-2325fe777dcb8c8bbaea84718dcfbdc298d33304.zip |
cleanup locale function usage (#27227)
Diffstat (limited to 'templates/package')
-rw-r--r-- | templates/package/shared/list.tmpl | 2 | ||||
-rw-r--r-- | templates/package/shared/versionlist.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl index afa360fd93..d30767cd7f 100644 --- a/templates/package/shared/list.tmpl +++ b/templates/package/shared/list.tmpl @@ -1,7 +1,7 @@ {{template "base/alert" .}} <form class="ui form ignore-dirty"> <div class="ui fluid action input"> - {{template "shared/searchinput" dict "locale" .locale "Value" .Query "AutoFocus" true}} + {{template "shared/searchinput" dict "Value" .Query "AutoFocus" true}} <select class="ui dropdown" name="type"> <option value="">{{.locale.Tr "packages.filter.type"}}</option> <option value="all">{{.locale.Tr "packages.filter.type.all"}}</option> diff --git a/templates/package/shared/versionlist.tmpl b/templates/package/shared/versionlist.tmpl index e8043b9abb..b372d45df2 100644 --- a/templates/package/shared/versionlist.tmpl +++ b/templates/package/shared/versionlist.tmpl @@ -1,7 +1,7 @@ <p><a href="{{.PackageDescriptor.PackageWebLink}}">{{.PackageDescriptor.Package.Name}}</a> / <strong>{{.locale.Tr "packages.versions"}}</strong></p> <form class="ui form ignore-dirty"> <div class="ui fluid action input"> - {{template "shared/searchinput" dict "locale" .locale "Value" .Query "AutoFocus" true}} + {{template "shared/searchinput" dict "Value" .Query "AutoFocus" true}} <select class="ui dropdown" name="sort"> <option value="version_asc"{{if eq .Sort "version_asc"}} selected="selected"{{end}}>{{.locale.Tr "filter.string.asc"}}</option> <option value="version_desc"{{if eq .Sort "version_desc"}} selected="selected"{{end}}>{{.locale.Tr "filter.string.desc"}}</option> |