<%= content_for :javascript do%> /* * Send Private Message */ $("a#new_private_message_link").fancybox({ 'hideOnContentClick' : false, 'frameWidth' : 450, 'frameHeight' : 430 }); <%end%> <%= content_for :sidebar do %>
<%= render :partial => 'profiles/user_spaces', :locals => {:show_user =>@user, :title=>"#{t('space.other')}"} %>
<%end%>
<%= render :partial=>'profiles/public_hcard'%> <% if @profile.authorize? :read, :to => current_user %> <%= render :partial=>'profiles/private_hcard'%> <% end %>
<% flash.each do |name, msg| %>
<%= msg.html_safe %>
<% end %>

<%=t('recent.activity')%>

<%if @recent_activity.empty?%>

<%=t('user.noactivity', :user=>@user.name)%>

<%end%> <% @recent_activity.each do |content| -%> <% case content when Post -%> <%= render :partial => "posts/unified_post" , :locals => {:thread => content.reload, :extended => false} %> <% when Event -%> <%= render :partial => "events/unified_event", :locals => {:event => content.reload} %> <% when Attachment -%> <%= render :partial => "attachments/unified_attachment", :locals =>{:attachment => content.reload} if content.post.blank?%> <% else -%>
<%=t('unknown_content', :content => content.class)%>
<% end -%> <%end%> <%= will_paginate @recent_activity %>