Commit e81f6ba4401d50565bd958e5e805b151c4474d99

Authored by Rafael Reggiani Manzo
1 parent c11b2c87

Refactor FansBlock footer into helper/view

app/models/fans_block.rb
@@ -12,14 +12,6 @@ class FansBlock < ProfileListBlock @@ -12,14 +12,6 @@ class FansBlock < ProfileListBlock
12 _('This block presents the fans of an enterprise.') 12 _('This block presents the fans of an enterprise.')
13 end 13 end
14 14
15 - def footer  
16 - profile = self.owner  
17 - proc do  
18 - link_to _('View all'), :profile => profile.identifier, :controller =>  
19 - 'profile', :action => 'fans'  
20 - end  
21 - end  
22 -  
23 def profiles 15 def profiles
24 owner.fans 16 owner.fans
25 end 17 end
app/views/blocks/footers/fans.html.erb 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +<%= link_to _('View all'), :profile => block.owner.identifier, :controller => 'profile', :action => 'fans' %>