diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-11 17:11:28 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-11 17:11:28 +0100 |
commit | 39636be7b018b9121696ce7bdc462ab2c3c8185d (patch) | |
tree | 08e33b02dce0082db08584ad6e09be1f4653bf41 /src/main/resources/webapp/apps/buildApp | |
parent | 4e9d5b5a447144c910c2698975157ee296e2eac8 (diff) | |
download | esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.gz esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.bz2 esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.xz esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.zip |
o Creating bin/web for running the web application.
Diffstat (limited to 'src/main/resources/webapp/apps/buildApp')
-rwxr-xr-x | src/main/resources/webapp/apps/buildApp/build.html | 30 | ||||
-rwxr-xr-x | src/main/resources/webapp/apps/buildApp/buildApp.js | 12 |
2 files changed, 42 insertions, 0 deletions
diff --git a/src/main/resources/webapp/apps/buildApp/build.html b/src/main/resources/webapp/apps/buildApp/build.html new file mode 100755 index 0000000..fec38d2 --- /dev/null +++ b/src/main/resources/webapp/apps/buildApp/build.html @@ -0,0 +1,30 @@ +<div class="container"> + + <div class="page-header"> + <h1>Build</h1> + </div> + + <div> + <h3>Participants</h3> + <table> + <tr> + <th>Date</th> + <td>{{build.build.timestamp | date:'medium'}}</td> + </tr> + <tr> + <th>Status</th> + <td> + <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 build.participants"> + <span>{{participant.name}}</span> + </p> + + </div> + +</div> diff --git a/src/main/resources/webapp/apps/buildApp/buildApp.js b/src/main/resources/webapp/apps/buildApp/buildApp.js new file mode 100755 index 0000000..170af16 --- /dev/null +++ b/src/main/resources/webapp/apps/buildApp/buildApp.js @@ -0,0 +1,12 @@ +'use strict'; + +var buildApp = angular.module('buildApp', ['build', 'buildParticipant']).config(function ($routeProvider) { + $routeProvider. + when('/', {controller: BuildCtrl, templateUrl: '/apps/buildApp/build.html?noCache=' + noCache}); +}); + +function BuildCtrl($scope, Build, BuildParticipant) { + Build.get({uuid: uuid}, function(build) { + $scope.build = build; + }); +} |