diff --git a/app/controllers/my_profile/profile_design_controller.rb b/app/controllers/my_profile/profile_design_controller.rb index 44fb7ac..46c24fa 100644 --- a/app/controllers/my_profile/profile_design_controller.rb +++ b/app/controllers/my_profile/profile_design_controller.rb @@ -16,6 +16,8 @@ class ProfileDesignController < BoxOrganizerController if profile.person? blocks << FriendsBlock blocks << FavoriteEnterprisesBlock + blocks << CommunitiesBlock + blocks << EnterprisesBlock end # blocks exclusive for enterprises diff --git a/app/models/communities_block.rb b/app/models/communities_block.rb index 5e9908d..09811bd 100644 --- a/app/models/communities_block.rb +++ b/app/models/communities_block.rb @@ -1,7 +1,5 @@ class CommunitiesBlock < ProfileListBlock - settings_items :limit, :default => 3 - def self.description __('A block that displays your communities') end diff --git a/app/models/profile_list_block.rb b/app/models/profile_list_block.rb index 31373db..8268d7f 100644 --- a/app/models/profile_list_block.rb +++ b/app/models/profile_list_block.rb @@ -1,6 +1,6 @@ class ProfileListBlock < Block - settings_items :limit, :default => 6 + settings_items :limit, :type => :integer, :default => 6 def self.description _('A block that displays random profiles') diff --git a/app/views/box_organizer/_profile_list_block.rhtml b/app/views/box_organizer/_profile_list_block.rhtml new file mode 100644 index 0000000..391fe2d --- /dev/null +++ b/app/views/box_organizer/_profile_list_block.rhtml @@ -0,0 +1,4 @@ +
+ <%= labelled_form_field _('Limit of items'), text_field(:block, :limit, :size => 3) %> +
+ -- libgit2 0.21.2