diff options
Diffstat (limited to 'src/main/webapp/apps/buildApp')
-rwxr-xr-x | src/main/webapp/apps/buildApp/build.html | 8 | ||||
-rwxr-xr-x[-rw-r--r--] | src/main/webapp/apps/buildApp/buildApp.js | 5 |
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; }); } |