summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-12-06 15:28:00 +0800
committerGitHub <noreply@github.com>2023-12-06 02:28:00 -0500
commitb7e3adc66c01dc6c81126ca4c031cad48d6eb6c4 (patch)
tree1796204ec8984e50aba5ca64b6c99cea9fec13ce /templates/repo
parent5b5f8aab19ab40900fd7393aae8b53b68017d0a0 (diff)
downloadgitea-b7e3adc66c01dc6c81126ca4c031cad48d6eb6c4.tar.gz
gitea-b7e3adc66c01dc6c81126ca4c031cad48d6eb6c4.zip
Fix the runs will not be displayed bug when the main branch have no workflows but other branches have (#28359) (#28365)
Backport #28359 by @lunny The left menu will only display the default branch's workflows but the right side will display the runs triggered by all branches' workflows. So we cannot hide right side if default branch has no workflows. Fix #28332 Replace #28333 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/actions/list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/actions/list.tmpl b/templates/repo/actions/list.tmpl
index ede4c82602..62d30305b3 100644
--- a/templates/repo/actions/list.tmpl
+++ b/templates/repo/actions/list.tmpl
@@ -4,7 +4,7 @@
<div class="ui container">
{{template "base/alert" .}}
- {{if .workflows}}
+ {{if .HasWorkflowsOrRuns}}
<div class="ui stackable grid">
<div class="four wide column">
<div class="ui fluid vertical menu">