Noosfero/noosfero

View on GitHub
app/views/person_notifier/mailer/_profile_comments.html.erb

Summary

Maintainability
Test Coverage
<% if activity.comments_count > 2 %>
  <div style="font-size: 10px;">
    <% if activity.params['url'].blank?  %>
      <%= _("%s comments").html_safe % activity.comments_count %>
    <% else %>
      <%= link_to(_("View all %s comments").html_safe % activity.comments_count, activity.params['url']) %>
    <% end %>
  </div>
<% else %>
  <ul>
    <%= render :partial => 'comment', :collection => activity.comments %>
  </ul>
<% end %>