From d88f0f81eed4f00d269e786b8062794c42ea01a8 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 23 Nov 2023 19:24:34 +0800 Subject: [PATCH] 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 <70063547+lng2020@users.noreply.github.com> Co-authored-by: wxiaoguang (cherry picked from commit f9763f136629bc440a77e7bc96371a8531b38fa5) --- templates/repo/release/new.tmpl | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ {{end}} {{else}} + {{if not .tag_name}} + + {{end}} +