File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ type Release struct {
7979 RenderedNote string `xorm:"-"`
8080 IsDraft bool `xorm:"NOT NULL DEFAULT false"`
8181 IsPrerelease bool `xorm:"NOT NULL DEFAULT false"`
82- IsTag bool `xorm:"NOT NULL DEFAULT false"`
82+ IsTag bool `xorm:"NOT NULL DEFAULT false"` // will be true only if the record is a tag and has no related releases
8383 Attachments []* Attachment `xorm:"-"`
8484 CreatedUnix timeutil.TimeStamp `xorm:"INDEX"`
8585}
Original file line number Diff line number Diff line change 9393 {{end}}
9494 </h4>
9595 <div class="gt-df gt-ac">
96- {{if $.CanCreateRelease}}
96+ {{if and $.CanCreateRelease (not .IsTag) }}
9797 <a class="muted gt-ml-3 gt-df gt-ac" data-tooltip-content="{{$.locale.Tr "repo.release.edit"}}" href="{{$.RepoLink}}/releases/edit/{{.TagName | PathEscapeSegments}}" rel="nofollow">
9898 {{svg "octicon-pencil"}}
9999 </a>
You can’t perform that action at this time.
0 commit comments