From 1b83af30a4e935f2037a6e9153cb438c29adfbfc Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 29 Dec 2012 15:56:48 +0100 Subject: o Starting on a generic paging component. o Showing recent jobs on the jenkins server page. --- src/main/webapp/apps/buildApp/build.html | 30 ++++++++++++++++++++++++++++++ src/main/webapp/apps/buildApp/buildApp.js | 15 +++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/main/webapp/apps/buildApp/build.html create mode 100644 src/main/webapp/apps/buildApp/buildApp.js (limited to 'src/main/webapp/apps/buildApp') 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 @@ +
+ + + +
+

Participants

+ + + + + + + + + +
Date{{build.date | date:'medium'}}
Status + SUCCESS + FAILURE +
+

Participants

+ +

+ {{participant.name}} +

+ +
+ +
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; + }); +} -- cgit v1.2.3