diff options
author | Nanguan Lin <70063547+lng2020@users.noreply.github.com> | 2023-11-23 18:36:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 11:36:52 +0100 |
commit | 778d6043464d60e06af183ae24d764bf3e9fce0f (patch) | |
tree | afabb545331119e51b98cbe6c90172042756757e /templates/repo | |
parent | 37ed92d6fdb989fd5e56621f33b3e26369933ec2 (diff) | |
download | gitea-778d6043464d60e06af183ae24d764bf3e9fce0f.tar.gz gitea-778d6043464d60e06af183ae24d764bf3e9fce0f.zip |
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 <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/release/new.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index 9fd3e5bd97..46b1c9b291 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -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> |