Commit 7b646c73c04b5feb67a4df9d8f40f98d05a18fc7

Authored by AntonioTerceiro
1 parent 00d53e2f

ActionItem139: adding missing changes to ProfileInfoBlock


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1317 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/models/profile_info_block.rb
@@ -5,9 +5,9 @@ class ProfileInfoBlock < Block @@ -5,9 +5,9 @@ class ProfileInfoBlock < Block
5 end 5 end
6 6
7 def content 7 def content
8 - user = owner 8 + block = self
9 lambda do 9 lambda do
10 - render :file => 'account/user_info', :locals => { :user => user } 10 + render :file => 'blocks/profile_info', :locals => { :block => block }
11 end 11 end
12 end 12 end
13 13
app/views/blocks/profile_info.rhtml
1 <h2><%= block.owner.name %></h2> 1 <h2><%= block.owner.name %></h2>
2 2
  3 +<%= profile_image(block.owner) %>
  4 +
3 <ul> 5 <ul>
4 <li><%= _('Since %d') % block.owner.created_at.year %></li> 6 <li><%= _('Since %d') % block.owner.created_at.year %></li>
5 <li><%= link_to_homepage _('Homepage'), block.owner.url %></li> 7 <li><%= link_to_homepage _('Homepage'), block.owner.url %></li>