mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							a85d916d3e
						
					
				
				
					commit
					35c3ea952a
				
			| @@ -132,6 +132,7 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { | |||||||
|  |  | ||||||
| 	keyword := strings.Trim(ctx.Query("q"), " ") | 	keyword := strings.Trim(ctx.Query("q"), " ") | ||||||
| 	topicOnly := ctx.QueryBool("topic") | 	topicOnly := ctx.QueryBool("topic") | ||||||
|  | 	ctx.Data["TopicOnly"] = topicOnly | ||||||
|  |  | ||||||
| 	repos, count, err = models.SearchRepository(&models.SearchRepoOptions{ | 	repos, count, err = models.SearchRepository(&models.SearchRepoOptions{ | ||||||
| 		Page:               page, | 		Page:               page, | ||||||
| @@ -155,6 +156,7 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { | |||||||
|  |  | ||||||
| 	pager := context.NewPagination(int(count), opts.PageSize, page, 5) | 	pager := context.NewPagination(int(count), opts.PageSize, page, 5) | ||||||
| 	pager.SetDefaultParams(ctx) | 	pager.SetDefaultParams(ctx) | ||||||
|  | 	pager.AddParam(ctx, "topic", "TopicOnly") | ||||||
| 	ctx.Data["Page"] = pager | 	ctx.Data["Page"] = pager | ||||||
|  |  | ||||||
| 	ctx.HTML(200, opts.TplName) | 	ctx.HTML(200, opts.TplName) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user