From 22cb83183828c7a4828c54e9b30597d276cfd73f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 13 Jan 2013 09:35:27 +0100 Subject: o Implemented "build" view. o Created a better 'dogtag' directive, should be more reusable. --- .../resources/webapp/apps/frontPageApp/badge.html | 16 +++++------- .../webapp/apps/frontPageApp/badgeList.html | 2 +- .../resources/webapp/apps/frontPageApp/build.html | 29 ++++++++++++++++++++++ .../webapp/apps/frontPageApp/buildList.html | 8 +++++- .../webapp/apps/frontPageApp/frontPageApp.js | 2 +- .../resources/webapp/apps/frontPageApp/person.html | 4 +-- 6 files changed, 46 insertions(+), 15 deletions(-) create mode 100755 src/main/resources/webapp/apps/frontPageApp/build.html (limited to 'src/main/resources/webapp/apps/frontPageApp') diff --git a/src/main/resources/webapp/apps/frontPageApp/badge.html b/src/main/resources/webapp/apps/frontPageApp/badge.html index 92fc7ae..48d15ce 100755 --- a/src/main/resources/webapp/apps/frontPageApp/badge.html +++ b/src/main/resources/webapp/apps/frontPageApp/badge.html @@ -3,25 +3,21 @@
- The badge was awarded to at - {{badge.badge.createdDate | date:'medium'}}. -
-
- -
-
-

Details

+

+ The badge was awarded to + at {{badge.badge.createdDate | date:'medium'}}. +

The badge was awarded for having {{badge.personalBadge.builds.length}} successful builds in a row:

diff --git a/src/main/resources/webapp/apps/frontPageApp/badgeList.html b/src/main/resources/webapp/apps/frontPageApp/badgeList.html index 972e1ec..6b795bd 100755 --- a/src/main/resources/webapp/apps/frontPageApp/badgeList.html +++ b/src/main/resources/webapp/apps/frontPageApp/badgeList.html @@ -30,7 +30,7 @@

- + More
diff --git a/src/main/resources/webapp/apps/frontPageApp/build.html b/src/main/resources/webapp/apps/frontPageApp/build.html new file mode 100755 index 0000000..0972758 --- /dev/null +++ b/src/main/resources/webapp/apps/frontPageApp/build.html @@ -0,0 +1,29 @@ +
+ + + + + +
+
+ + + + + + + + + + + +
TypeJenkins
Duration{{build.build.timestamp | date:'medium'}}
+ +

Participants

+ +
+ +
+
diff --git a/src/main/resources/webapp/apps/frontPageApp/buildList.html b/src/main/resources/webapp/apps/frontPageApp/buildList.html index c6196d4..18a4d35 100755 --- a/src/main/resources/webapp/apps/frontPageApp/buildList.html +++ b/src/main/resources/webapp/apps/frontPageApp/buildList.html @@ -22,11 +22,17 @@ {{build.build.timestamp | date:'medium'}}: SUCCESS FAILURE + +

Participants

- + diff --git a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js index de8a7b6..9e507b4 100755 --- a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js +++ b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js @@ -118,7 +118,7 @@ function BuildListCtrl($scope, Build, PagingTableService) { $scope.builds = PagingTableService.create($scope, PagingTableService.defaultCallback(Build, {fields: "detailed"})); } -function BuildCtrl($scope, Build, PagingTableService) { +function BuildCtrl($scope, $routeParams, Build, PagingTableService) { var buildUuid = $routeParams.buildUuid; Build.get({uuid: buildUuid}, function (build) { diff --git a/src/main/resources/webapp/apps/frontPageApp/person.html b/src/main/resources/webapp/apps/frontPageApp/person.html index a2e522d..189523c 100755 --- a/src/main/resources/webapp/apps/frontPageApp/person.html +++ b/src/main/resources/webapp/apps/frontPageApp/person.html @@ -50,7 +50,7 @@ {{build.timestamp | date:'medium'}} {{{true: 'Success', false: 'Failure'}[build.success]}} - Details + Details @@ -71,7 +71,7 @@ {{build.timestamp | date:'medium'}} {{build.success}} - + -- cgit v1.2.3