_default_activity.rhtml
989 Bytes
<div class='profile-activity-image'>
<%= link_to(profile_image(activity.user, :minor), activity.user.url) %>
</div>
<div class='profile-activity-description'>
<p class='profile-activity-text'><%= link_to activity.user.name, activity.user.url %> <%= describe activity %></p>
<p class='profile-activity-time'><%= time_ago_as_sentence(activity.created_at) %></p>
<div class='profile-wall-actions'>
<%= link_to s_('profile|Comment'), '#', { :class => 'focus-on-comment'} %>
<%= link_to_function(_('Remove'), 'remove_item_wall(this, %s, %s, %s); return false ;' % ["'.profile-activity-item'", url_for(:profile => params[:profile], :action => :remove_activity, :activity_id => activity.id, :view => params[:view]).to_json, _('Are you sure you want to remove this activity and all its replies?').to_json]) if logged_in? && current_person == @profile %>
</div>
</div>
<%= render :partial => 'profile_comments', :locals => { :activity => activity, :tab_action => tab_action } %>