diff --git a/src/app/components/noosfero/blocks/block.directive.js b/src/app/components/noosfero/blocks/block.directive.js index 4487a53..bbab3c8 100644 --- a/src/app/components/noosfero/blocks/block.directive.js +++ b/src/app/components/noosfero/blocks/block.directive.js @@ -10,11 +10,12 @@ var directive = { restrict: 'E', scope: { - block: '=' + block: '=', + owner: '=' }, link: function(scope, element, attrs) { var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); - element.replaceWith($compile('')(scope)); + element.replaceWith($compile('')(scope)); } }; return directive; diff --git a/src/app/components/noosfero/blocks/link-list.directive.js b/src/app/components/noosfero/blocks/link-list.directive.js index ef18ed6..ac79fce 100644 --- a/src/app/components/noosfero/blocks/link-list.directive.js +++ b/src/app/components/noosfero/blocks/link-list.directive.js @@ -11,7 +11,8 @@ restrict: 'E', templateUrl: 'app/components/noosfero/blocks/link-list.html', scope: { - block: '=' + block: '=', + owner: '=' }, controller: LinkListBlockController, controllerAs: 'vm', diff --git a/src/app/components/noosfero/blocks/profile-image.directive.js b/src/app/components/noosfero/blocks/profile-image.directive.js index 75d49f6..e215538 100644 --- a/src/app/components/noosfero/blocks/profile-image.directive.js +++ b/src/app/components/noosfero/blocks/profile-image.directive.js @@ -11,7 +11,8 @@ restrict: 'E', templateUrl: 'app/components/noosfero/blocks/profile-image.html', scope: { - block: '=' + block: '=', + owner: '=' }, controller: ProfileImageBlockController, controllerAs: 'vm', @@ -23,7 +24,7 @@ /** @ngInject */ function ProfileImageBlockController(moment) { var vm = this; - vm.links = vm.block.settings.links; + vm.profile = vm.owner; } } diff --git a/src/app/components/noosfero/blocks/profile-image.html b/src/app/components/noosfero/blocks/profile-image.html index 773b222..31d6ddb 100644 --- a/src/app/components/noosfero/blocks/profile-image.html +++ b/src/app/components/noosfero/blocks/profile-image.html @@ -1 +1,3 @@ -image +
+ +
diff --git a/src/app/main/main.controller.js b/src/app/main/main.controller.js index aaae5a5..efc0219 100644 --- a/src/app/main/main.controller.js +++ b/src/app/main/main.controller.js @@ -14,7 +14,7 @@ function activate() { noosfero.communities().get({id: 67, private_token: '1b00325e5f769a0c38550bd35b3f1d64'}).$promise.then(function (profile) { $log.log(profile); - vm.boxes = profile.community.boxes; + vm.owner = profile.community; }); } } diff --git a/src/app/main/main.html b/src/app/main/main.html index 60e509e..09034e1 100644 --- a/src/app/main/main.html +++ b/src/app/main/main.html @@ -5,7 +5,7 @@
- +
diff --git a/src/app/views/profile/block.html b/src/app/views/profile/block.html index c265158..19d380b 100644 --- a/src/app/views/profile/block.html +++ b/src/app/views/profile/block.html @@ -1,9 +1,9 @@
-
+

{{block.title}}

{{block}}
- +
diff --git a/src/assets/images/icons-app/community-big.png b/src/assets/images/icons-app/community-big.png new file mode 100644 index 0000000..31cbd3f Binary files /dev/null and b/src/assets/images/icons-app/community-big.png differ -- libgit2 0.21.2