]> source.dussan.org Git - gitea.git/commitdiff
Fix missing buttons (#28179)
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>
Thu, 23 Nov 2023 10:36:52 +0000 (18:36 +0800)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2023 10:36:52 +0000 (11:36 +0100)
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 <wxiaoguang@gmail.com>
templates/repo/release/new.tmpl

index 9fd3e5bd978508de67e30dded548b36d7e5ccefd..46b1c9b291b43ec1866f7d16dee8aa35f081a0fb 100644 (file)
                                                                </button>
                                                        {{end}}
                                                {{else}}
+                                                       {{if not .tag_name}}
+                                                               <button class="ui small button" name="tag_only" value="1">{{ctx.Locale.Tr "repo.release.add_tag"}}</button>
+                                                       {{end}}
+                                                       <button class="ui small button" name="draft" value="1">{{ctx.Locale.Tr "repo.release.save_draft"}}</button>
                                                        <button class="ui small primary button">
                                                                {{ctx.Locale.Tr "repo.release.publish"}}
                                                        </button>