Do not display search box when there's no packages yet (#28146)

Before:

![image](3012f544-7ff5-4ccb-ac80-ce24d50abe97)

After:

![image](4084312a-9ac0-4103-8c93-ea178ae24493)

![image](3c47d175-0735-476d-8979-da2bc0a4fc95)

![image](033c6a81-d1f7-4426-8063-5793d0b47462)
This commit is contained in:
yp05327 2023-11-22 05:03:19 +09:00 committed by GitHub
parent a6a674e26a
commit d1acd7e9de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
{{template "base/alert" .}}
{{if .HasPackages}}
<form class="ui form ignore-dirty">
<div class="ui fluid action input">
{{template "shared/searchinput" dict "Value" .Query}}
@ -12,6 +13,7 @@
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
</div>
</form>
{{end}}
<div>
{{range .PackageDescriptors}}
<div class="flex-list">