Commit 4c1cc6aeb83d69ad9c120e22272bae1d804cf6f1

Authored by MoisesMachado
1 parent a7766654

ActionItem85: fixed the list block url

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@798 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/profile_admin/enterprise_editor_controller.rb
... ... @@ -2,8 +2,8 @@ class EnterpriseEditorController < ProfileAdminController
2 2  
3 3 before_filter :login_required, :check_enterprise
4 4  
5   - protect [:edit, :update], :edit_profile, :profile
6   - protect [:destroy], :destroy_profile, :profile
  5 + protect [:edit, :update], 'edit_profile', :profile
  6 + protect [:destroy], 'destroy_profile', :profile
7 7  
8 8 needs_profile
9 9  
... ...
app/models/enterprises_block.rb
... ... @@ -7,7 +7,7 @@ class EnterprisesBlock < Design::Block
7 7 Enterprise.find(:all).map do |p|
8 8 content_tag(:li,
9 9 content_tag(:span,
10   - link_to( p.name, :profile => p.identifier)
  10 + link_to_homepage( p.name, p.identifier)
11 11 )
12 12 )
13 13 end.join("\n"),
... ...
app/models/list_block.rb
... ... @@ -10,7 +10,7 @@ class ListBlock < Design::Block
10 10 'li',
11 11 content_tag(
12 12 'span',
13   - link_to( p.name, :profile => p.identifier)
  13 + link_to_homepage( p.name, p.identifier)
14 14 ))
15 15 end.join("\n"),
16 16 :class => 'people_list_block'
... ...