diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-09-30 10:39:23 +0100 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-09-30 10:39:23 +0100 |
commit | f89e9a8baba97cf74d70e0d010853d8ec58bb8f9 (patch) | |
tree | fafe71279eba038ad61179af7ad81c71f645df3f | |
parent | 0f9662edaae537ddcf14707d51fe3d7c6327f54d (diff) | |
download | ciat-ui-f89e9a8baba97cf74d70e0d010853d8ec58bb8f9.tar.gz |
Add publish boxes to the publishing lane
-rw-r--r-- | js/main.js | 8 | ||||
-rw-r--r-- | partials/visualisation.html | 6 |
2 files changed, 14 insertions, 0 deletions
@@ -39,6 +39,7 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) $scope.builds = []; $scope.deploys = []; $scope.tests = []; + $scope.publishings = []; $http.get(apiBase + '/builders') .then(function(builders) { angular.forEach(builders.data, function(value, key) { @@ -88,6 +89,13 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) data: value }); } + else if(key.indexOf("Publishing") > -1) { + $scope.publishings.push({ + name: key, + lastBuild: details, + data: value + }); + } diff --git a/partials/visualisation.html b/partials/visualisation.html index 4cb9c61..6735014 100644 --- a/partials/visualisation.html +++ b/partials/visualisation.html @@ -50,6 +50,12 @@ <div class="lane col-md-2"> <h3>Publishing</h3> + <div class="box" + ng-class="{'pass': step.lastBuild.success, 'active': step.data.state == 'building', 'fail': step.lastBuild.failed}" + ng-repeat="step in publishings" + ng-click="select(step, $event)"> + {{step.name}} + </div> </div> </div> |