<%= div_for activity do %>
<%= link_to(activity.sender_subject.name, activity.sender_subject) %>
<%= render activity.activity_objects %>
<%= render :partial => 'activities/options', :locals => { :activity => activity } %> <%= render :partial => 'activities/comments', :locals => { :activity => activity } %> <%= render :partial => 'comments/new', :locals => { :activity => activity } %>
<% if activity.activity_objects.count > 1 %>
<%else %>
<%end%>
<% end %>