Skip to content
Snippets Groups Projects
Commit eed7d247 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

Fixed fullname bug + add authors views

parent 8aa726ca
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@ The API documentation is available at `<BASE URL>/swagger-ui.html`. A JSON versi
## TODO
* Fix bugs;
* Add author's view if needed;
* Implement delete methods if needed;
* Externalize configuration (DB parameters, security enabled/disabled, ...);
* Implement SoapUI tests;
......@@ -23,7 +22,6 @@ The API documentation is available at `<BASE URL>/swagger-ui.html`. A JSON versi
## BUGS
* In the profile view, we shouldn't see the '+' between firstname and lastname;
* Export PDF;
### Maintenance
......
/**
* Created by Michael DESIGAUD on 09/09/2015.
*/
angular.module('chuvApp.profile').controller('ProfileController', ['$scope', '$translatePartialLoader', '$translate', '$stateParams','User',
function ($scope, $translatePartialLoader, $translate, $stateParams, User) {
$scope.user = User.current();
}]);
/**
* Created by Michael DESIGAUD on 09/09/2015.
*/
angular.module('chuvApp.profile').controller('ProfileController', ['$scope', '$translatePartialLoader', '$translate', '$stateParams','User','$http',
function ($scope, $translatePartialLoader, $translate, $stateParams, User, $http) {
$http.get("/users/"+User.current().username).success(function(data) {$scope.user = data;});
}]);
/**
* Created by Michael DESIGAUD on 09/09/2015.
*/
angular.module('chuvApp.users').controller('UserController', ['$scope', '$translatePartialLoader', '$translate', '$stateParams','User',
function ($scope, $translatePartialLoader, $translate, $stateParams, User) {
$scope.user = User.get($stateParams.login);
}]);
/**
* Created by Michael DESIGAUD on 09/09/2015.
*/
angular.module('chuvApp.users').controller('UserController', ['$scope', '$translatePartialLoader', '$translate', '$stateParams','User','$http',
function ($scope, $translatePartialLoader, $translate, $stateParams, User, $http) {
$http.get("/users/"+$stateParams.username).success(function(data) {$scope.user = data;});
}]);
/**
* Created by Florent PERINEL on 14/08/2015.
*/
'use strict';
angular.module('chuvApp.users',
// Module requirements
['ngResource', 'pascalprecht.translate', 'ui.router'])
// Module configuration
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('user-show', {
url: '/users/:login',
templateUrl: 'scripts/app/profile/profile.html',
controller: 'UserController'
})
}]);
/**
* Created by Florent PERINEL on 14/08/2015.
*/
'use strict';
angular.module('chuvApp.users',
// Module requirements
['ngResource', 'pascalprecht.translate', 'ui.router'])
// Module configuration
.config(['$stateProvider', function ($stateProvider) {
$stateProvider
.state('user-show', {
url: '/users/:username',
templateUrl: 'scripts/app/profile/profile.html',
controller: 'UserController'
})
}]);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment