From c9ff3d5495b0229d837fa0ec23486cc7b6b191d0 Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl
Date: Fri, 28 Dec 2012 13:13:14 +0100
Subject: o Listing builds on the person view.
---
src/main/webapp/apps/personApp/person.html | 7 +++++++
src/main/webapp/apps/personApp/personApp.js | 10 +++++++---
2 files changed, 14 insertions(+), 3 deletions(-)
(limited to 'src/main/webapp/apps/personApp')
diff --git a/src/main/webapp/apps/personApp/person.html b/src/main/webapp/apps/personApp/person.html
index 4189f20..2c0c3e7 100644
--- a/src/main/webapp/apps/personApp/person.html
+++ b/src/main/webapp/apps/personApp/person.html
@@ -14,4 +14,11 @@
{{badge.name}} progress: {{badge.progress}} of {{badge.goal}}
+ Builds
+
+
diff --git a/src/main/webapp/apps/personApp/personApp.js b/src/main/webapp/apps/personApp/personApp.js
index 59f5a7d..8323c45 100644
--- a/src/main/webapp/apps/personApp/personApp.js
+++ b/src/main/webapp/apps/personApp/personApp.js
@@ -1,12 +1,16 @@
'use strict';
-var personApp = angular.module('personApp', ['personService']).config(function ($routeProvider, $locationProvider) {
+var personApp = angular.module('personApp', ['person', 'build']).config(function ($routeProvider, $locationProvider) {
$routeProvider.
when('/', {controller: PersonCtrl, templateUrl: '/apps/personApp/person.html?noCache=' + noCache});
});
-function PersonCtrl($scope, $location, PersonService) {
- PersonService.get({uuid: uuid}, function (person) {
+function PersonCtrl($scope, $location, Person, Build) {
+ Person.get({uuid: uuid}, function (person) {
$scope.person = person;
});
+
+ Build.query({person: uuid}, function (builds) {
+ $scope.builds = builds;
+ });
}
--
cgit v1.2.3