Skip to content

Commit f9763f1

Browse files
GiteaBotlng2020wxiaoguang
authored
Fix missing buttons (#28179) (#28181)
Backport #28179 by @lng2020 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: Nanguan Lin <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
1 parent a2314ca commit f9763f1

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)