mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Add missing variable in tag list (#28305)
This fixes a regression from #25859
If a tag has no Release, Gitea will show a Link to create a Release for
the Tag if the User has the Permission to do this, but the variable to
indicate that is no longer set.
Used here:
1bfcdeef4c/templates/repo/tag/list.tmpl (L39-L41)
			
			
This commit is contained in:
		@@ -174,6 +174,7 @@ func TagsList(ctx *context.Context) {
 | 
				
			|||||||
	// Disable the showCreateNewBranch form in the dropdown on this page.
 | 
						// Disable the showCreateNewBranch form in the dropdown on this page.
 | 
				
			||||||
	ctx.Data["CanCreateBranch"] = false
 | 
						ctx.Data["CanCreateBranch"] = false
 | 
				
			||||||
	ctx.Data["HideBranchesInDropdown"] = true
 | 
						ctx.Data["HideBranchesInDropdown"] = true
 | 
				
			||||||
 | 
						ctx.Data["CanCreateRelease"] = ctx.Repo.CanWrite(unit.TypeReleases) && !ctx.Repo.Repository.IsArchived
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	listOptions := db.ListOptions{
 | 
						listOptions := db.ListOptions{
 | 
				
			||||||
		Page:     ctx.FormInt("page"),
 | 
							Page:     ctx.FormInt("page"),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user