<% unless @events_by_day.empty? %>
<% @events_by_day.keys.sort.reverse.each do |day| %> <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> <% end %>
<%= link_to image_tag(url_to_avatar(e.event_author), :class => "avatar"), user_path(e.event_author), :class => "avatar" %> <% if e.event_author == User.current%> <% else %> <% end %>
<%= link_to("我", user_path(e.event_author)) %>有了最新动态 <%= link_to format_activity_title(e.event_title), e.event_url %> <%= link_to(h(e.event_author), user_path(e.event_author)) %>有了最新动态 <%= link_to format_activity_title(e.event_title), e.event_url %>

<%= textilizable e.event_description %>

<%= format_activity_day(day) %>
<% end %>
<% else %> <%= l(:label_user_activities) %> <% end %>