<% events_by_day.keys.sort.reverse_each do |day| %>
<%= format_activity_day(day) %>
<% sort_activity_events(events_by_day[day]).each do |e, in_group| -%>
- <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
<%= activity_event_type_icon e.event_type, plugin: Redmine::Activity.plugin_name(e.activity_provider_options.keys[0]) %>
<%= avatar(e.event_author) if e.respond_to?(:event_author) %>
<%= format_time(e.event_datetime, false) %>
<%= content_tag('span', e.project, :class => 'project') if @project.nil? || @project != e.project %>
<%= link_to format_activity_title(e.event_title), e.event_url %>
- "><%= format_activity_description(e.event_description) %>
<%= link_to_user(e.event_author) if e.respond_to?(:event_author) %>
<% end -%>
<% end -%>