diff --git a/src/lib/Hydra/Controller/JobsetEval.pm b/src/lib/Hydra/Controller/JobsetEval.pm
index 6f6e7eab..ed0fe12e 100644
--- a/src/lib/Hydra/Controller/JobsetEval.pm
+++ b/src/lib/Hydra/Controller/JobsetEval.pm
@@ -83,6 +83,7 @@ sub view_GET {
$c->stash->{removed} = [];
$c->stash->{unfinished} = [];
$c->stash->{aborted} = [];
+ $c->stash->{failed} = [];
my $n = 0;
foreach my $build (@builds) {
@@ -119,6 +120,9 @@ sub view_GET {
} else {
push @{$c->stash->{new}}, $build if !$found;
}
+ if ($build->buildstatus != 0) {
+ push @{$c->stash->{failed}}, $build;
+ }
}
$c->stash->{full} = ($c->req->params->{full} || "0") eq "1";
diff --git a/src/root/jobset-eval.tt b/src/root/jobset-eval.tt
index 25315c66..8a8d92e4 100644
--- a/src/root/jobset-eval.tt
+++ b/src/root/jobset-eval.tt
@@ -51,7 +51,7 @@ c.uri_for(c.controller('JobsetEval').action_for('view'),
[% IF unfinished.size > 0 %]
Cancel all scheduled builds
[% END %]
- [% IF aborted.size > 0 || stillFail.size > 0 || nowFail.size > 0 %]
+ [% IF aborted.size > 0 || stillFail.size > 0 || nowFail.size > 0 || failed.size > 0 %]
Restart all failed builds
[% END %]
[% IF aborted.size > 0 %]