diff options
-rw-r--r-- | index.html | 5 | ||||
-rw-r--r-- | js/main.js | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,5 @@ <!DOCTYPE html> -<html> +<html ng-app="ciat"> <head> <link href='https://fonts.googleapis.com/css?family=Sarpanch:800,400' rel='stylesheet' type='text/css'> <link href='style.css' rel='stylesheet' type='text/css'> @@ -9,7 +9,8 @@ <body> <h1><em>Baserock</em> <span>|</span> CIAT</h1> - <div class="visualisation"> + <div class="visualisation" ng-controller="VisualisationController"> + {{ builders }} <div class="box pass">Firehose</div> <div class="box pass active">Build</div> <div class="box fail">Deploy</div> @@ -1 +1,6 @@ var app = angular.module('ciat', []); + +app.controller('VisualisationController', ['$scope', + function($scope) { + $scope.builders = $http.get('http://ciat.baserock.org:8010/json/builders'); + }]); |