Commit ee41e5ff771f6b878a6db5923ff64905845037d6

Authored by LeandroNunes
1 parent 6f63b94b

ActionItem19: fixing some little bugs to design plugin works

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@831 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/environment_admin/edit_template_controller.rb
1 class EditTemplateController < EnvironmentAdminController 1 class EditTemplateController < EnvironmentAdminController
2 2
3 design_editor :holder => 'environment', :autosave => true, :block_types => :block_types 3 design_editor :holder => 'environment', :autosave => true, :block_types => :block_types
4 - 4 +
  5 + #FIXME This is wrong
  6 + #See the FavoriteLinksController considerations and choose the better way
5 def block_types 7 def block_types
6 - {  
7 - 'ListBlock' => _("List Block"),  
8 - 'LinkBlock' => _("Link Block"),  
9 - } 8 + %w[
  9 + FavoriteLinks
  10 + ]
10 end 11 end
11 12
12 def index 13 def index