mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-29 14:15:55 +00:00
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:
parent
33b9bf20bc
commit
20f6639f11
2 changed files with 8 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue