Commit 0de6b0fe8f2b9a014bfc1400abf6366363d46a1d
1 parent
3def26ed
Exists in
master
and in
22 other branches
ActionItem1043: allowing to edit the limit of profile list block
Showing
4 changed files
with
7 additions
and
3 deletions
Show diff stats
app/controllers/my_profile/profile_design_controller.rb
| @@ -16,6 +16,8 @@ class ProfileDesignController < BoxOrganizerController | @@ -16,6 +16,8 @@ class ProfileDesignController < BoxOrganizerController | ||
| 16 | if profile.person? | 16 | if profile.person? |
| 17 | blocks << FriendsBlock | 17 | blocks << FriendsBlock |
| 18 | blocks << FavoriteEnterprisesBlock | 18 | blocks << FavoriteEnterprisesBlock |
| 19 | + blocks << CommunitiesBlock | ||
| 20 | + blocks << EnterprisesBlock | ||
| 19 | end | 21 | end |
| 20 | 22 | ||
| 21 | # blocks exclusive for enterprises | 23 | # blocks exclusive for enterprises |
app/models/communities_block.rb
app/models/profile_list_block.rb
| 1 | class ProfileListBlock < Block | 1 | class ProfileListBlock < Block |
| 2 | 2 | ||
| 3 | - settings_items :limit, :default => 6 | 3 | + settings_items :limit, :type => :integer, :default => 6 |
| 4 | 4 | ||
| 5 | def self.description | 5 | def self.description |
| 6 | _('A block that displays random profiles') | 6 | _('A block that displays random profiles') |