aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/apps/buildApp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-09 17:04:10 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-09 17:04:10 +0100
commitbc54871dac7ef10102edecf91a747d6595a4640f (patch)
tree4cf4aaf0875497359534a9521ba785a7476fa7a5 /src/main/webapp/apps/buildApp
parent8f027c74517e1cf2c8fc13f86da80e8e8f1c0148 (diff)
downloadesper-testing-bc54871dac7ef10102edecf91a747d6595a4640f.tar.gz
esper-testing-bc54871dac7ef10102edecf91a747d6595a4640f.tar.bz2
esper-testing-bc54871dac7ef10102edecf91a747d6595a4640f.tar.xz
esper-testing-bc54871dac7ef10102edecf91a747d6595a4640f.zip
o Adding basic build list in the front page application.
Diffstat (limited to 'src/main/webapp/apps/buildApp')
-rwxr-xr-xsrc/main/webapp/apps/buildApp/build.html8
-rwxr-xr-x[-rw-r--r--]src/main/webapp/apps/buildApp/buildApp.js5
2 files changed, 5 insertions, 8 deletions
diff --git a/src/main/webapp/apps/buildApp/build.html b/src/main/webapp/apps/buildApp/build.html
index 2feee28..fec38d2 100755
--- a/src/main/webapp/apps/buildApp/build.html
+++ b/src/main/webapp/apps/buildApp/build.html
@@ -9,19 +9,19 @@
<table>
<tr>
<th>Date</th>
- <td>{{build.timestamp | date:'medium'}}</td>
+ <td>{{build.build.timestamp | date:'medium'}}</td>
</tr>
<tr>
<th>Status</th>
<td>
- <span ng-show="build.success">SUCCESS</span>
- <span ng-hide="build.success">FAILURE</span>
+ <span ng-show="build.build.success">SUCCESS</span>
+ <span ng-hide="build.build.success">FAILURE</span>
</td>
</tr>
</table>
<h3>Participants</h3>
- <p ng-repeat="participant in participants">
+ <p ng-repeat="participant in build.participants">
<span>{{participant.name}}</span>
</p>
diff --git a/src/main/webapp/apps/buildApp/buildApp.js b/src/main/webapp/apps/buildApp/buildApp.js
index 187b240..170af16 100644..100755
--- a/src/main/webapp/apps/buildApp/buildApp.js
+++ b/src/main/webapp/apps/buildApp/buildApp.js
@@ -7,9 +7,6 @@ var buildApp = angular.module('buildApp', ['build', 'buildParticipant']).config(
function BuildCtrl($scope, Build, BuildParticipant) {
Build.get({uuid: uuid}, function(build) {
- window.build = $scope.build = build;
- });
- BuildParticipant.query({uuid: uuid}, function(persons) {
- $scope.participants = persons;
+ $scope.build = build;
});
}