diff options
-rw-r--r-- | js/main.js | 6 | ||||
-rw-r--r-- | partials/visualisation.html | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -152,6 +152,12 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) } else { $scope.selected = step; } + if ($scope.selected.data.state === "building") { + $scope.selected.state = "In progress"; + } + else { + $scope.selected.state = "Idle"; + } }; function cancelRefresh() { diff --git a/partials/visualisation.html b/partials/visualisation.html index da2a746..be3725e 100644 --- a/partials/visualisation.html +++ b/partials/visualisation.html @@ -74,7 +74,7 @@ <a class="close" ng-click="select()">×</a> <h3>{{selected.name}}</h3> <div class="detail-contents"> - <p><strong>State:</strong> {{selected.data.state}}</p> + <p><strong>State:</strong> {{selected.state}}</p> <p> <strong>Last Job:</strong> <a ng-href="http://ciat.baserock.org:8010/builders/{{selected.name}}/builds/{{selected.lastBuild.number}}"> |