diff options
author | Adam Coldrick <adam@sotk.co.uk> | 2015-09-26 11:23:53 +0100 |
---|---|---|
committer | Adam Coldrick <adam@sotk.co.uk> | 2015-09-28 20:20:09 +0100 |
commit | ef49f9b9ec9c31afd2e3b9054c40be5a42ed97a1 (patch) | |
tree | 3df39442288405e04e1ba772b6fe42f5887c3b6f | |
parent | 3b34af0989fe79e8453bb0ddc9ff3bfaa103d526 (diff) | |
download | ciat-ui-ef49f9b9ec9c31afd2e3b9054c40be5a42ed97a1.tar.gz |
Use ng-class to color based on success
-rw-r--r-- | index.html | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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> |