summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam@sotk.co.uk>2015-09-27 09:32:21 +0100
committerAdam Coldrick <adam@sotk.co.uk>2015-09-28 20:26:12 +0100
commit2b1e2b3203859f1034f4027cc54ef882301bb2ac (patch)
tree979346f26462666aa9424491ed326d35de368781
parentf3899144173b26a943b0bbf1e6ea0926641c7433 (diff)
downloadciat-ui-2b1e2b3203859f1034f4027cc54ef882301bb2ac.tar.gz
Timestamp
-rw-r--r--index.html3
-rw-r--r--js/main.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/index.html b/index.html
index cf81848..75a0923 100644
--- a/index.html
+++ b/index.html
@@ -23,7 +23,8 @@
<h3>{{selected.name}}</h3>
<div class="detail-contents">
<p><strong>State:</strong> {{selected.data.state}}</p>
- <p><strong>Most Recent Logs:</strong></p>
+ <p><strong>Last Build:</strong> {{selected.lastBuild.number}} at {{selected.lastBuild.sourceStamps[0].changes[0].at}}
+ <p><strong>Logs for {{selected.lastBuild.number}}:</strong></p>
<ul>
<li ng-repeat="step in selected.lastBuild.steps">
<a ng-href="{{step.logs[0][1]}}">{{step.name}} {{step.logs[0][0]}}</a>
diff --git a/js/main.js b/js/main.js
index 7f3fd24..56c7374 100644
--- a/js/main.js
+++ b/js/main.js
@@ -34,7 +34,9 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval)
var details = {
success: checkInArray(response.data.text, 'successful'),
failed: checkInArray(response.data.text, 'failed'),
- steps: response.data.steps
+ steps: response.data.steps,
+ sourceStamps: response.data.sourceStamps,
+ number: response.data.number
};
$scope.steps.push({
name: key,