aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/apps/buildApp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/webapp/apps/buildApp')
-rwxr-xr-xsrc/main/resources/webapp/apps/buildApp/build.html30
-rwxr-xr-xsrc/main/resources/webapp/apps/buildApp/buildApp.js12
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;
+ });
+}