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/admin/repo | |
parent | 3a187eace5643a3dc681f87bdd8d0edbb742aa8f (diff) | |
download | gitea-2325fe777dcb8c8bbaea84718dcfbdc298d33304.tar.gz gitea-2325fe777dcb8c8bbaea84718dcfbdc298d33304.zip |
cleanup locale function usage (#27227)
Diffstat (limited to 'templates/admin/repo')
-rw-r--r-- | templates/admin/repo/search.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/repo/unadopted.tmpl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/admin/repo/search.tmpl b/templates/admin/repo/search.tmpl index fa39e0b40a..5f51e4ff88 100644 --- a/templates/admin/repo/search.tmpl +++ b/templates/admin/repo/search.tmpl @@ -1,7 +1,7 @@ <div class="ui secondary filter menu gt-ac gt-mx-0"> <form class="ui form ignore-dirty gt-f1"> <div class="ui fluid action input"> - {{template "shared/searchinput" dict "locale" .locale "Value" .Keyword "AutoFocus" true}} + {{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}} <button class="ui primary button">{{.locale.Tr "explore.search"}}</button> </div> </form> diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl index a903425b21..746c81d00f 100644 --- a/templates/admin/repo/unadopted.tmpl +++ b/templates/admin/repo/unadopted.tmpl @@ -37,7 +37,7 @@ <input type="hidden" name="action" value="adopt"> <input type="hidden" name="q" value="{{$.Keyword}}"> <input type="hidden" name="page" value="{{$.CurrentPage}}"> - {{template "base/modal_actions_confirm" (dict "locale" $.locale)}} + {{template "base/modal_actions_confirm"}} </form> </div> <button class="ui button red show-modal gt-p-3" data-modal="#delete-unadopted-modal-{{$dirI}}">{{svg "octicon-x"}} {{$.locale.Tr "repo.delete_preexisting_label"}}</button> @@ -54,7 +54,7 @@ <input type="hidden" name="action" value="delete"> <input type="hidden" name="q" value="{{$.Keyword}}"> <input type="hidden" name="page" value="{{$.CurrentPage}}"> - {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonColors" "yellow")}} + {{template "base/modal_actions_confirm" (dict "ModalButtonColors" "yellow")}} </form> </div> </div> |