aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/apps/buildApp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-12-29 15:56:48 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2012-12-29 15:56:48 +0100
commit1b83af30a4e935f2037a6e9153cb438c29adfbfc (patch)
tree4b885fe232512d3c4c22c99d004ce202ec7638f6 /src/main/webapp/apps/buildApp
parentf39b6c813dfa8ad97de4f8a35aaf21ee1408b6d4 (diff)
downloadesper-testing-1b83af30a4e935f2037a6e9153cb438c29adfbfc.tar.gz
esper-testing-1b83af30a4e935f2037a6e9153cb438c29adfbfc.tar.bz2
esper-testing-1b83af30a4e935f2037a6e9153cb438c29adfbfc.tar.xz
esper-testing-1b83af30a4e935f2037a6e9153cb438c29adfbfc.zip
o Starting on a generic paging component.
o Showing recent jobs on the jenkins server page.
Diffstat (limited to 'src/main/webapp/apps/buildApp')
-rw-r--r--src/main/webapp/apps/buildApp/build.html30
-rw-r--r--src/main/webapp/apps/buildApp/buildApp.js15
2 files changed, 45 insertions, 0 deletions
diff --git a/src/main/webapp/apps/buildApp/build.html b/src/main/webapp/apps/buildApp/build.html
new file mode 100644
index 0000000..b2d4bd9
--- /dev/null
+++ b/src/main/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.date | date:'medium'}}</td>
+ </tr>
+ <tr>
+ <th>Status</th>
+ <td>
+ <span ng-show="build.success">SUCCESS</span>
+ <span ng-hide="build.success">FAILURE</span>
+ </td>
+ </tr>
+ </table>
+ <h3>Participants</h3>
+
+ <p ng-repeat="participant in participants">
+ <span>{{participant.name}}</span>
+ </p>
+
+ </div>
+
+</div>
diff --git a/src/main/webapp/apps/buildApp/buildApp.js b/src/main/webapp/apps/buildApp/buildApp.js
new file mode 100644
index 0000000..187b240
--- /dev/null
+++ b/src/main/webapp/apps/buildApp/buildApp.js
@@ -0,0 +1,15 @@
+'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) {
+ window.build = $scope.build = build;
+ });
+ BuildParticipant.query({uuid: uuid}, function(persons) {
+ $scope.participants = persons;
+ });
+}