Hide edit button on tag releases

When the release is "just" a tag, there is no release object to edit.

Closes: #3589
This commit is contained in:
Lucas Schwiderski 2025-04-28 14:14:26 +02:00
commit 20f6639f11
No known key found for this signature in database
GPG key ID: AA12679AAA6DF4D8
2 changed files with 8 additions and 3 deletions

View file

@ -29,7 +29,7 @@
{{end}}
</h4>
<div>
{{if $.CanCreateRelease}}
{{if and $.CanCreateRelease (not $release.IsTag)}}
<a class="muted" data-tooltip-content="{{ctx.Locale.Tr "repo.release.edit"}}" href="{{$.RepoLink}}/releases/edit/{{$release.TagName | PathEscapeSegments}}" rel="nofollow">
{{svg "octicon-pencil"}}
</a>