summaryrefslogtreecommitdiffstats
path: root/templates/package
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-11-20 09:57:46 +0100
committerGitHub <noreply@github.com>2023-11-20 09:57:46 +0100
commiteae555ff2395cc1ad178f3a977d83742ae73e1d9 (patch)
tree8a1f612a453b2f0aec55204b954aafed67038761 /templates/package
parentAdd missing `packages.cleanup.success` (#28129) (diff)
downloadforgejo-eae555ff2395cc1ad178f3a977d83742ae73e1d9.tar.xz
forgejo-eae555ff2395cc1ad178f3a977d83742ae73e1d9.zip
Remove autofocus in search box (#28033)
Mentioned here: https://github.com/go-gitea/gitea/pull/27982#issuecomment-1807923026
Diffstat (limited to 'templates/package')
-rw-r--r--templates/package/shared/list.tmpl2
-rw-r--r--templates/package/shared/versionlist.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl
index a572d98bb6..1087f6061f 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 "Value" .Query "AutoFocus" true}}
+ {{template "shared/searchinput" dict "Value" .Query}}
<select class="ui dropdown" name="type">
<option value="">{{ctx.Locale.Tr "packages.filter.type"}}</option>
<option value="all">{{ctx.Locale.Tr "packages.filter.type.all"}}</option>
diff --git a/templates/package/shared/versionlist.tmpl b/templates/package/shared/versionlist.tmpl
index 71a1557ffb..fcf3030fe6 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>{{ctx.Locale.Tr "packages.versions"}}</strong></p>
<form class="ui form ignore-dirty">
<div class="ui fluid action input">
- {{template "shared/searchinput" dict "Value" .Query "AutoFocus" true}}
+ {{template "shared/searchinput" dict "Value" .Query}}
<select class="ui dropdown" name="sort">
<option value="version_asc"{{if eq .Sort "version_asc"}} selected="selected"{{end}}>{{ctx.Locale.Tr "filter.string.asc"}}</option>
<option value="version_desc"{{if eq .Sort "version_desc"}} selected="selected"{{end}}>{{ctx.Locale.Tr "filter.string.desc"}}</option>