<% @mentions_by_day.keys.sort.reverse.each do |day| %>
<%= format_activity_day(day) %>
<% @mentions_by_day[day].sort{ |a, b| b.created_on <=> a.created_on }.each do |mention| %>
-
<% if mention.author %>
<%= avatar(mention.author, :size => 24) %>
<% end %>
<%= format_time(mention.created_on, false) %>
<%= content_tag('span', h(mention.project), :class => 'project') if mention.project %>
<% if mention.url %>
<%= link_to(format_activity_title(mention.title), mention.url) %>
<% else %>
<%= format_activity_title(mention.title) %>
<% end %>
-
<% if mention.description %>
<%= format_activity_description(mention.description) %>
<% end %>
<% if mention.author %>
<%= link_to_user(mention.author) %>
<% end %>
<% end %>
<% end %>