aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/apps/personApp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/apps/personApp')
-rw-r--r--src/main/webapp/apps/personApp/person.html7
-rw-r--r--src/main/webapp/apps/personApp/personApp.js10
2 files changed, 14 insertions, 3 deletions
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 @@
<span class="badge badge-level-{{badge.level}}">{{badge.name}}</span> progress: {{badge.progress}} of {{badge.goal}}
</p>
+ <h3>Builds</h3>
+ <ul>
+ <li ng-repeat="build in builds">
+ {{build.uuid}}
+ </li>
+ </ul>
+
</div>
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;
+ });
}