From 790e2816b93561f3d812b457cb5323e30d4f7984 Mon Sep 17 00:00:00 2001 From: LeandroNunes Date: Fri, 26 Oct 2007 12:32:03 +0000 Subject: [PATCH] ActionItem19: adding new version of design plugin on system --- app/controllers/profile_admin/profile_editor_controller.rb | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/app/controllers/profile_admin/profile_editor_controller.rb b/app/controllers/profile_admin/profile_editor_controller.rb index 8860749..77c2c77 100644 --- a/app/controllers/profile_admin/profile_editor_controller.rb +++ b/app/controllers/profile_admin/profile_editor_controller.rb @@ -6,15 +6,23 @@ class ProfileEditorController < ProfileAdminController design_editor :holder => 'profile', :autosave => true, :block_types => :block_types - def block_types - { - 'ListBlock' => _("List of People"), - 'EnterprisesBlock' => _("List of Enterprises"), - 'LinkBlock' => _("Link Block"), - 'RecentDocumentsBlock' => _("Recent documents block") - } + + def block_types + %w[ + FavoriteLinks + ] end +# Put other Blocks to works +# def block_types +# { +# 'ListBlock' => _("List of People"), +# 'EnterprisesBlock' => _("List of Enterprises"), +# 'LinkBlock' => _("Link Block"), +# 'RecentDocumentsBlock' => _("Recent documents block") +# } +# end + # edits the profile info (posts back) def edit if request.post? -- libgit2 0.21.2