File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ type Release struct {
79
79
RenderedNote string `xorm:"-"`
80
80
IsDraft bool `xorm:"NOT NULL DEFAULT false"`
81
81
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
83
83
Attachments []* Attachment `xorm:"-"`
84
84
CreatedUnix timeutil.TimeStamp `xorm:"INDEX"`
85
85
}
Original file line number Diff line number Diff line change 93
93
{{end}}
94
94
</h4>
95
95
<div class="gt-df gt-ac">
96
- {{if $.CanCreateRelease}}
96
+ {{if and $.CanCreateRelease (not .IsTag) }}
97
97
<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">
98
98
{{svg "octicon-pencil"}}
99
99
</a>
You can’t perform that action at this time.
0 commit comments