<%= link_to scrap.sender.name, scrap.sender.url %>
<%= txt2html scrap.content %>
<%= time_ago_in_words(scrap.created_at) %>
<% if logged_in? && current_person.follows?(scrap.sender) %>
<%= link_to_function s_('profile|Comment'), "hide_and_show(['#profile-wall-message-response-#{scrap.id}'],['#profile-wall-reply-#{scrap.id}', '#profile-wall-reply-form-#{scrap.id}']);jQuery('#reply_content_#{scrap.id}').val('');jQuery('#reply_content_#{scrap.id}').focus();return false", :class => "profile-send-reply" %>
<% end %>
<%= link_to_function(_('Remove'), 'remove_item_wall(this, \'%s\', \'%s\', \'%s\'); return false ;' % [".profile-activity-item", url_for(:profile => params[:profile], :action => :remove_scrap, :scrap_id => scrap.id, :view => params[:view]), _('Are you sure you want to remove this scrap and all its replies?')]) if logged_in? && user.can_control_scrap?(scrap) %>
<% if scrap.replies.count > 0 %>
<% end %>
<%= render :partial => 'profile_scrap_reply_form', :locals => { :scrap => scrap } if allow_comment? %>