Commit 7ceb48361d5df013e2c307d3f45b680ca4f4bdc7
1 parent
bdb16c09
Exists in
master
and in
38 other branches
Change endpoint from community to profile
Showing
4 changed files
with
5 additions
and
5 deletions
Show diff stats
src/app/components/noosfero-blocks/profile-image/profile-image.html
1 | 1 | <div class="center-block text-center"> |
2 | 2 | <div class="profile-image"> |
3 | - <img ng-show="{{vm.owner.image}}" src="{{vm.owner.image.url}}"> | |
3 | + <img ng-show="{{vm.owner.image}}" src="{{vm.owner.image.url}}" class="img-responsive"> | |
4 | 4 | <i ng-show="{{!vm.owner.image}}" class="fa fa-users fa-5x"></i> |
5 | 5 | </div> |
6 | 6 | <div class='admin-link'> | ... | ... |
src/app/components/noosfero/noosfero.service.js
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | |
4 | 4 | angular.module('angular').factory('noosfero', function(Restangular) { |
5 | 5 | return { |
6 | - communities: Restangular.service('communities'), | |
6 | + profiles: Restangular.service('profiles'), | |
7 | 7 | boxes: function(profileId) { |
8 | 8 | return Restangular.service('boxes', Restangular.one('profiles', profileId)) |
9 | 9 | } | ... | ... |
src/app/content-viewer/content-viewer.controller.js
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | |
16 | 16 | function activate() { |
17 | 17 | vm.profile = $scope.vm.owner; |
18 | - noosfero.communities.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) { | |
18 | + noosfero.profiles.one(vm.profile.id).one('articles').get({path: $stateParams.page}).then(function(articles) { | |
19 | 19 | vm.article = articles.article; |
20 | 20 | }); |
21 | 21 | } | ... | ... |
src/app/profile/profile.controller.js
... | ... | @@ -13,8 +13,8 @@ |
13 | 13 | activate(); |
14 | 14 | |
15 | 15 | function activate() { |
16 | - noosfero.communities.one().get({identifier: $stateParams.profile}).then(function(communities) { | |
17 | - vm.owner = communities.communities[0]; | |
16 | + noosfero.profiles.one().get({identifier: $stateParams.profile}).then(function(profiles) { | |
17 | + vm.owner = profiles[0]; | |
18 | 18 | return noosfero.boxes(vm.owner.id).one().get(); |
19 | 19 | }).then(function(response) { |
20 | 20 | vm.boxes = response.boxes; | ... | ... |