From 9bb21fc01a471a4bb5d6b5e9bed76ea5da7ff76c Mon Sep 17 00:00:00 2001 From: Alex Russell Date: Thu, 1 Aug 2013 16:37:21 +0100 Subject: [PATCH] Fixed bootstrap table and label classes (mainly the danger ones) --- PHPCI/View/BuildsTable.phtml | 10 +++++----- PHPCI/View/SummaryTable.phtml | 8 ++++---- PHPCI/View/User/index.phtml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/PHPCI/View/BuildsTable.phtml b/PHPCI/View/BuildsTable.phtml index aa177832..98cdce91 100644 --- a/PHPCI/View/BuildsTable.phtml +++ b/PHPCI/View/BuildsTable.phtml @@ -10,7 +10,7 @@ switch($build->getStatus()) { case 0: - $cls = 'info'; + $cls = 'active'; $subcls = 'info'; $status = 'Pending'; @@ -29,8 +29,8 @@ switch($build->getStatus()) break; case 3: - $cls = 'error'; - $subcls = 'important'; + $cls = 'danger'; + $subcls = 'danger'; $status = 'Failed'; break; } @@ -53,7 +53,7 @@ switch($build->getStatus()) ?> $pluginstatus): - $subcls = $pluginstatus?'label label-success':'label label-important'; + $subcls = $pluginstatus?'label label-success':'label label-danger'; ?> Build()->formatPluginName($plugin); ?>
@@ -71,4 +71,4 @@ switch($build->getStatus()) - \ No newline at end of file + diff --git a/PHPCI/View/SummaryTable.phtml b/PHPCI/View/SummaryTable.phtml index 416f61e0..d927e6af 100644 --- a/PHPCI/View/SummaryTable.phtml +++ b/PHPCI/View/SummaryTable.phtml @@ -60,12 +60,12 @@ foreach($projects as $projectId => $project): switch($project['lastbuildstatus']) { case 0: - $cls = 'info'; + $cls = 'active'; $status = 'Pending'; break; case 1: - $cls = 'warning'; + $cls = 'danger'; $status = 'Running'; break; @@ -81,7 +81,7 @@ foreach($projects as $projectId => $project): } $health = ($project['health'] <= 0 ? 'Stormy': ($project['successes'] < $project['count']? 'Overcast': 'Sunny')); - $subcls = ($project['health'] <= 0 ? 'important': ($project['successes'] < $project['count']? 'warning': 'success')); + $subcls = ($project['health'] <= 0 ? 'danger': ($project['successes'] < $project['count']? 'warning': 'success')); ?> @@ -111,4 +111,4 @@ foreach($projects as $projectId => $project): / build now » - \ No newline at end of file + diff --git a/PHPCI/View/User/index.phtml b/PHPCI/View/User/index.phtml index 318cfad6..aacffcf0 100644 --- a/PHPCI/View/User/index.phtml +++ b/PHPCI/View/User/index.phtml @@ -60,4 +60,4 @@ - \ No newline at end of file +