Skip to content

Commit

Permalink
Fix missing buttons (go-gitea#28179) (go-gitea#28181)
Browse files Browse the repository at this point in the history
Backport go-gitea#28179 by @lng2020

fix go-gitea#28173
regression go-gitea#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]>
(cherry picked from commit f9763f1)
  • Loading branch information
GiteaBot authored and earl-warren committed Nov 25, 2023
1 parent 3b66d03 commit d88f0f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/repo/release/new.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@
</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>
Expand Down

0 comments on commit d88f0f8

Please sign in to comment.