summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam@sotk.co.uk>2015-09-26 10:18:58 +0100
committerAdam Coldrick <adam@sotk.co.uk>2015-09-26 10:18:58 +0100
commit7235cccbb865bfdc2229f1015d8373258e532c32 (patch)
tree34da9b931eb41d38d8451d29d24166dc78051f17
parent2504e0164c5f4f6e73006a296140a82e167a5a5c (diff)
downloadciat-ui-7235cccbb865bfdc2229f1015d8373258e532c32.tar.gz
Use AngularJS in index.html
-rw-r--r--index.html5
-rw-r--r--js/main.js5
2 files changed, 8 insertions, 2 deletions
diff --git a/index.html b/index.html
index b1e4053..875e0e4 100644
--- a/index.html
+++ b/index.html
@@ -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>
diff --git a/js/main.js b/js/main.js
index 149564d..760ab23 100644
--- a/js/main.js
+++ b/js/main.js
@@ -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');
+ }]);