cirandas.net

ref: master

app/views/blocks/profile_info.html.erb


<%= h block.owner.short_name(nil) %>

<%= profile_image(block.owner, :thumb) +"\n"+ profile_sex_icon( profile ) %>
  • <%= link_to _('Homepage'), block.owner.url, :class => 'url' %>
  • <%= link_to _('View profile'), block.owner.public_profile_url %>
  • <% if !user.nil? and user.has_permission?('edit_profile', profile) %>
  • <%= link_to _('Control panel'), block.owner.admin_url %>
  • <% end %> <% if profile.person? %>
  • <%= _('Since %{year}/%{month}') % { :year => block.owner.created_at.year, :month => block.owner.created_at.month } %>
  • <% end %>
<% if profile.respond_to? :city %>
<%= [ [ profile.city, 'locality' ], [ profile.state, 'region' ], [ profile.country_name, 'country-name' ] ].map{ |s,c| s =~ /^\s*$/ ? nil : content_tag( 'span', s, :class => c ) }.compact.safe_join ' - ' %>
<% end %>
<%= render_profile_actions block.owner.class %>