summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam@sotk.co.uk>2015-09-27 09:13:00 +0100
committerAdam Coldrick <adam@sotk.co.uk>2015-09-28 20:26:12 +0100
commitf3899144173b26a943b0bbf1e6ea0926641c7433 (patch)
tree6360a8152bee2fa7601a16d71d8d7cf95fe1e214
parent670a54cf0489daf64b84fe4d22ca121174c13d03 (diff)
downloadciat-ui-f3899144173b26a943b0bbf1e6ea0926641c7433.tar.gz
Show step names
-rw-r--r--index.html4
-rw-r--r--js/main.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/index.html b/index.html
index 6f0b25b..cf81848 100644
--- a/index.html
+++ b/index.html
@@ -25,8 +25,8 @@
<p><strong>State:</strong> {{selected.data.state}}</p>
<p><strong>Most Recent Logs:</strong></p>
<ul>
- <li ng-repeat="(key, value) in selected.lastBuild.logs">
- <a ng-href="{{value[1]}}">{{key}} {{value[0]}}</a>
+ <li ng-repeat="step in selected.lastBuild.steps">
+ <a ng-href="{{step.logs[0][1]}}">{{step.name}} {{step.logs[0][0]}}</a>
</li>
</ul>
</div>
diff --git a/js/main.js b/js/main.js
index 6e67179..7f3fd24 100644
--- a/js/main.js
+++ b/js/main.js
@@ -34,7 +34,7 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval)
var details = {
success: checkInArray(response.data.text, 'successful'),
failed: checkInArray(response.data.text, 'failed'),
- logs: response.data.logs
+ steps: response.data.steps
};
$scope.steps.push({
name: key,