diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-09 17:04:10 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-09 17:04:10 +0100 |
commit | bc54871dac7ef10102edecf91a747d6595a4640f (patch) | |
tree | 4cf4aaf0875497359534a9521ba785a7476fa7a5 /src/main/webapp/apps/frontPageApp/frontPageApp.js | |
parent | 8f027c74517e1cf2c8fc13f86da80e8e8f1c0148 (diff) | |
download | esper-testing-bc54871dac7ef10102edecf91a747d6595a4640f.tar.gz esper-testing-bc54871dac7ef10102edecf91a747d6595a4640f.tar.bz2 esper-testing-bc54871dac7ef10102edecf91a747d6595a4640f.tar.xz esper-testing-bc54871dac7ef10102edecf91a747d6595a4640f.zip |
o Adding basic build list in the front page application.
Diffstat (limited to 'src/main/webapp/apps/frontPageApp/frontPageApp.js')
-rwxr-xr-x | src/main/webapp/apps/frontPageApp/frontPageApp.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/webapp/apps/frontPageApp/frontPageApp.js b/src/main/webapp/apps/frontPageApp/frontPageApp.js index 5f1cf2c..a67e2dc 100755 --- a/src/main/webapp/apps/frontPageApp/frontPageApp.js +++ b/src/main/webapp/apps/frontPageApp/frontPageApp.js @@ -5,7 +5,8 @@ var frontPageApp = angular.module('frontPageApp', ['ngGrid', 'person', 'badge', when('/', {controller: FrontPageCtrl, templateUrl: '/apps/frontPageApp/frontPage.html?noCache=' + noCache}). when('/badge/', {controller: BadgeListCtrl, templateUrl: '/apps/frontPageApp/badgeList.html?noCache=' + noCache}). when('/person/', {controller: PersonListCtrl, templateUrl: '/apps/frontPageApp/personList.html?noCache=' + noCache}). - when('/person/:personUuid', {controller: PersonCtrl, templateUrl: '/apps/frontPageApp/person.html?noCache=' + noCache}); + when('/person/:personUuid', {controller: PersonCtrl, templateUrl: '/apps/frontPageApp/person.html?noCache=' + noCache}). + when('/build/', {controller: BuildListCtrl, templateUrl: '/apps/frontPageApp/buildList.html?noCache=' + noCache}); }); function FrontPageCtrl($scope, Person, Badge) { @@ -95,3 +96,7 @@ function PersonCtrl($scope, $routeParams, Person, Build, PagingTableService) { $scope.recentBuilds = builds; }); } + +function BuildListCtrl($scope, Build, PagingTableService) { + $scope.builds = PagingTableService.create($scope, PagingTableService.defaultCallback(Build, {fields: "detailed"})); +} |