Skip to content

Commit 778d604

Browse files
lng2020wxiaoguang
andauthored
Fix missing buttons (#28179)
fix #28173 regression #25948 That PR is supposed to only change the style but somehow delete a code snippet. See the diff(https://github.com/go-gitea/gitea/pull/25948/files#diff-7c36d66fe058f4ff9f2beaac73cf710dca45b350d0dd98daf806828a4745fe62L125-L129) for details. --------- Co-authored-by: wxiaoguang <[email protected]>
1 parent 37ed92d commit 778d604

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/repo/release/new.tmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@
120120
</button>
121121
{{end}}
122122
{{else}}
123+
{{if not .tag_name}}
124+
<button class="ui small button" name="tag_only" value="1">{{ctx.Locale.Tr "repo.release.add_tag"}}</button>
125+
{{end}}
126+
<button class="ui small button" name="draft" value="1">{{ctx.Locale.Tr "repo.release.save_draft"}}</button>
123127
<button class="ui small primary button">
124128
{{ctx.Locale.Tr "repo.release.publish"}}
125129
</button>

0 commit comments

Comments
 (0)