mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Do not display search box when there's no packages yet (#28146)
Before:  After:   
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
				
			|||||||
{{template "base/alert" .}}
 | 
					{{template "base/alert" .}}
 | 
				
			||||||
 | 
					{{if .HasPackages}}
 | 
				
			||||||
<form class="ui form ignore-dirty">
 | 
					<form class="ui form ignore-dirty">
 | 
				
			||||||
	<div class="ui fluid action input">
 | 
						<div class="ui fluid action input">
 | 
				
			||||||
		{{template "shared/searchinput" dict "Value" .Query}}
 | 
							{{template "shared/searchinput" dict "Value" .Query}}
 | 
				
			||||||
@@ -12,6 +13,7 @@
 | 
				
			|||||||
		<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
 | 
							<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
 | 
					{{end}}
 | 
				
			||||||
<div>
 | 
					<div>
 | 
				
			||||||
	{{range .PackageDescriptors}}
 | 
						{{range .PackageDescriptors}}
 | 
				
			||||||
	<div class="flex-list">
 | 
						<div class="flex-list">
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user