Noosfero/noosfero

View on GitHub
app/views/profile/_default_activity.html.erb

Summary

Maintainability
Test Coverage
<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 <%= "activity-type-community" if profile.is_a?(Community) && activity.verb.include?("community") %>" >
    <%= link_to activity.user.name, activity.user.url, class: 'profile-name' %>
    <%= describe(activity).html_safe %>
  </p>
  <span class='profile-activity-send-reply'>
    <%= link_to_function font_awesome(:reply, s_('profile|Comment')), 'show_comment_reply_form(this)', { :class => "profile-send-reply", "data-activity-id" => "#{activity.id}", "data-tab-action" => "#{tab_action}" } %>
  </span>
  <%= render partial: 'profile_comments', locals: { activity: activity, tab_action: tab_action } %>
</div>
<div class='profile-wall-actions'>
  <%= link_to_function(font_awesome(: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]), _('Are you sure you want to remove this activity and all its replies?')]) if logged_in? && current_person == @profile %>
</div>