Noosfero/noosfero

View on GitHub
app/views/profile/_favorite_enterprise.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'>
    <%= link_to activity.user.short_name(nil), 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')), "hide_and_show(['#profile-#{tab_action}-message-response-#{activity.id}'],['#profile-#{tab_action}-reply-#{activity.id}', '#profile-#{tab_action}-reply-form-#{activity.id}']);jQuery('#reply_content_#{tab_action}_#{activity.id}').val('');jQuery('#reply_content_#{tab_action}_#{activity.id}').focus();return false", :class => "profile-send-reply" %>
  </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>