diff --git a/app/models/fans_block.rb b/app/models/fans_block.rb index c11ef5a..36677c9 100644 --- a/app/models/fans_block.rb +++ b/app/models/fans_block.rb @@ -12,14 +12,6 @@ class FansBlock < ProfileListBlock _('This block presents the fans of an enterprise.') end - def footer - profile = self.owner - proc do - link_to _('View all'), :profile => profile.identifier, :controller => - 'profile', :action => 'fans' - end - end - def profiles owner.fans end diff --git a/app/views/blocks/footers/fans.html.erb b/app/views/blocks/footers/fans.html.erb new file mode 100644 index 0000000..6868c37 --- /dev/null +++ b/app/views/blocks/footers/fans.html.erb @@ -0,0 +1 @@ +<%= link_to _('View all'), :profile => block.owner.identifier, :controller => 'profile', :action => 'fans' %> -- libgit2 0.21.2