Skip to content

Commit

Permalink
Add missing variable in tag list (go-gitea#28305)
Browse files Browse the repository at this point in the history
This fixes a regression from go-gitea#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:

https://github.com/go-gitea/gitea/blob/1bfcdeef4cca0f5509476358e5931c13d37ed1ca/templates/repo/tag/list.tmpl#L39-L41
  • Loading branch information
JakobDev authored and fuxiaohei committed Jan 17, 2024
1 parent 130c0d9 commit 35118d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routers/web/repo/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func TagsList(ctx *context.Context) {
// Disable the showCreateNewBranch form in the dropdown on this page.
ctx.Data["CanCreateBranch"] = false
ctx.Data["HideBranchesInDropdown"] = true
ctx.Data["CanCreateRelease"] = ctx.Repo.CanWrite(unit.TypeReleases) && !ctx.Repo.Repository.IsArchived

listOptions := db.ListOptions{
Page: ctx.FormInt("page"),
Expand Down

0 comments on commit 35118d7

Please sign in to comment.