diff options
author | yp05327 <576951401@qq.com> | 2023-11-22 05:03:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-21 20:03:19 +0000 |
commit | d1acd7e9de158d25ea45d44695f5cb4dfd820249 (patch) | |
tree | f0eba9ea061b8ef53c706183b3595cd892002640 /templates | |
parent | a6a674e26a2c88d470f38fb09c4065c473bc7e20 (diff) | |
download | gitea-d1acd7e9de158d25ea45d44695f5cb4dfd820249.tar.gz gitea-d1acd7e9de158d25ea45d44695f5cb4dfd820249.zip |
Do not display search box when there's no packages yet (#28146)
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/3012f544-7ff5-4ccb-ac80-ce24d50abe97)
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/4084312a-9ac0-4103-8c93-ea178ae24493)
![image](https://github.com/go-gitea/gitea/assets/18380374/3c47d175-0735-476d-8979-da2bc0a4fc95)
![image](https://github.com/go-gitea/gitea/assets/18380374/033c6a81-d1f7-4426-8063-5793d0b47462)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/package/shared/list.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl index 1087f6061f..740a96bb8d 100644 --- a/templates/package/shared/list.tmpl +++ b/templates/package/shared/list.tmpl @@ -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"> |