diff --git a/docs-web/src/main/webapp/src/app/docs/controller/User.js b/docs-web/src/main/webapp/src/app/docs/controller/User.js index 085e13b4..77bec639 100644 --- a/docs-web/src/main/webapp/src/app/docs/controller/User.js +++ b/docs-web/src/main/webapp/src/app/docs/controller/User.js @@ -3,5 +3,14 @@ /** * User controller. */ -angular.module('docs').controller('User', function() { +angular.module('docs').controller('User', function(Restangular, $scope, $state) { + // Load users + Restangular.one('user/list').get({ limit: 100 }).then(function(data) { + $scope.users = data.users; + }); + + // Open a user + $scope.openUser = function(user) { + $state.go('user.profile', { username: user.username }); + }; }); \ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/tag.html b/docs-web/src/main/webapp/src/partial/docs/tag.html index 37a9e7c9..733ab8ee 100644 --- a/docs-web/src/main/webapp/src/partial/docs/tag.html +++ b/docs-web/src/main/webapp/src/partial/docs/tag.html @@ -17,10 +17,10 @@

- +
- +
+

-
\ No newline at end of file + + + + + + +
+ + {{ user.username }} +
+ + + +
+
+
+ \ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/user.profile.html b/docs-web/src/main/webapp/src/partial/docs/user.profile.html index 38f8db32..111467a9 100644 --- a/docs-web/src/main/webapp/src/partial/docs/user.profile.html +++ b/docs-web/src/main/webapp/src/partial/docs/user.profile.html @@ -1 +1,6 @@ -{{ user }} \ No newline at end of file + + +

Documents created by {{ user.username }}

+TODO \ No newline at end of file