Commit 790e2816b93561f3d812b457cb5323e30d4f7984
1 parent
588fa3fc
Exists in
master
and in
22 other branches
ActionItem19: adding new version of design plugin on system
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@829 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
15 additions
and
7 deletions
Show diff stats
app/controllers/profile_admin/profile_editor_controller.rb
| @@ -6,15 +6,23 @@ class ProfileEditorController < ProfileAdminController | @@ -6,15 +6,23 @@ class ProfileEditorController < ProfileAdminController | ||
| 6 | 6 | ||
| 7 | design_editor :holder => 'profile', :autosave => true, :block_types => :block_types | 7 | design_editor :holder => 'profile', :autosave => true, :block_types => :block_types |
| 8 | 8 | ||
| 9 | - def block_types | ||
| 10 | - { | ||
| 11 | - 'ListBlock' => _("List of People"), | ||
| 12 | - 'EnterprisesBlock' => _("List of Enterprises"), | ||
| 13 | - 'LinkBlock' => _("Link Block"), | ||
| 14 | - 'RecentDocumentsBlock' => _("Recent documents block") | ||
| 15 | - } | 9 | + |
| 10 | + def block_types | ||
| 11 | + %w[ | ||
| 12 | + FavoriteLinks | ||
| 13 | + ] | ||
| 16 | end | 14 | end |
| 17 | 15 | ||
| 16 | +# Put other Blocks to works | ||
| 17 | +# def block_types | ||
| 18 | +# { | ||
| 19 | +# 'ListBlock' => _("List of People"), | ||
| 20 | +# 'EnterprisesBlock' => _("List of Enterprises"), | ||
| 21 | +# 'LinkBlock' => _("Link Block"), | ||
| 22 | +# 'RecentDocumentsBlock' => _("Recent documents block") | ||
| 23 | +# } | ||
| 24 | +# end | ||
| 25 | + | ||
| 18 | # edits the profile info (posts back) | 26 | # edits the profile info (posts back) |
| 19 | def edit | 27 | def edit |
| 20 | if request.post? | 28 | if request.post? |