We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c81255b commit 09d5028Copy full SHA for 09d5028
routers/web/repo/actions/actions.go
@@ -200,6 +200,7 @@ func List(ctx *context.Context) {
200
pager.AddParamString("actor", fmt.Sprint(actorID))
201
pager.AddParamString("status", fmt.Sprint(status))
202
ctx.Data["Page"] = pager
203
+ ctx.Data["HasWorkflowsOrRuns"] = len(workflows) > 0 || len(runs) > 0
204
205
ctx.HTML(http.StatusOK, tplListActions)
206
}
templates/repo/actions/list.tmpl
@@ -4,7 +4,7 @@
4
<div class="ui container">
5
{{template "base/alert" .}}
6
7
- {{if .workflows}}
+ {{if .HasWorkflowsOrRuns}}
8
<div class="ui stackable grid">
9
<div class="four wide column">
10
<div class="ui fluid vertical menu">
0 commit comments