summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam@sotk.co.uk>2015-09-26 11:23:53 +0100
committerAdam Coldrick <adam@sotk.co.uk>2015-09-28 20:20:09 +0100
commitef49f9b9ec9c31afd2e3b9054c40be5a42ed97a1 (patch)
tree3df39442288405e04e1ba772b6fe42f5887c3b6f
parent3b34af0989fe79e8453bb0ddc9ff3bfaa103d526 (diff)
downloadciat-ui-ef49f9b9ec9c31afd2e3b9054c40be5a42ed97a1.tar.gz
Use ng-class to color based on success
-rw-r--r--index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.html b/index.html
index 3a53a88..93cb23a 100644
--- a/index.html
+++ b/index.html
@@ -10,9 +10,10 @@
<h1><em>Baserock</em> <span>|</span> CIAT</h1>
<div class="visualisation" ng-controller="VisualisationController">
- <div class="box pass"
+ <div class="box"
+ ng-class="{'pass': step.lastBuild.success}"
ng-repeat="step in steps">
- {{step.name}} {{step.lastBuild}}
+ {{step.name}}
</div>
</div>
</body>