From 686e493bf129903e64f531da33c78d4263ff9f46 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 22 May 2019 10:55:35 +0200 Subject: [PATCH 1/2] dont ignore error status --- bootstrap.php | 2 +- views/deploys/index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index b120d39..a9a9846 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -66,7 +66,7 @@ if (COCKPIT_ADMIN && !COCKPIT_API_REQUEST) { $building = false; foreach ($deploys as $idx => $deploy) { $deploys[$idx]->building = false; - if (!in_array($deploy->status, ['success', 'failure'])) { + if (!in_array($deploy->status, ['success', 'failure', 'error'])) { $building = true; $deploys[$idx]->building = true; } diff --git a/views/deploys/index.php b/views/deploys/index.php index 88a6617..456941a 100644 --- a/views/deploys/index.php +++ b/views/deploys/index.php @@ -146,8 +146,8 @@ pre h2.failure { { App.i18n.get(deploy.status) } { App.i18n.get(deploy.status) } - { App.i18n.get(deploy.status) } - { App.i18n.get(deploy.status) } + { App.i18n.get(deploy.status) } + { App.i18n.get(deploy.status) } { deploy.number } From e19a52e445fef1901d732fa5f24ecc13a1c39086 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 22 May 2019 10:59:51 +0200 Subject: [PATCH 2/2] fixed list with error status --- views/deploys/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/deploys/index.php b/views/deploys/index.php index 456941a..2b81527 100644 --- a/views/deploys/index.php +++ b/views/deploys/index.php @@ -144,7 +144,7 @@ pre h2.failure { - { App.i18n.get(deploy.status) } + { App.i18n.get(deploy.status) } { App.i18n.get(deploy.status) } { App.i18n.get(deploy.status) } { App.i18n.get(deploy.status) }