chris@344:
chris@344: <% if @project.nil? %>
chris@344: <%= content_tag('h3', l(:label_activity_my_recent)) %>
chris@344:
chris@344: <% end %>
chris@344:
chris@344: <% if events.empty? %>
chris@344:
chris@344: <% if @project.nil? %>
chris@344:
<%= l(:label_activity_my_recent_none) %>
chris@344: <% end %>
chris@344:
chris@344: <% else %>
chris@344:
chris@344: <% if !@project.nil? %>
chris@344:
chris@344: <%= content_tag('h3', l(:label_activity_recent)) %>
chris@344: <% end %>
chris@344:
chris@344:
chris@344: <% events.sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
chris@344: -
chris@344: <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
chris@344: <%= format_time(e.event_datetime) %>
chris@344: <%= content_tag('span', link_to_project(e.project), :class => 'project') if @project.nil? || @project != e.project %>
chris@344: <% if e.respond_to?(:event_author) %>
chris@344: <%= e.event_author %>
chris@344: <% end %>
chris@344:
chris@344: - <%= link_to format_activity_title(e.event_title), e.event_url %>
chris@344: <%= format_activity_description(e.event_description) %>
chris@344:
chris@344: <% end -%>
chris@344:
chris@344:
chris@344:
chris@344:
chris@344: <% end %>
chris@344:
chris@344: <% if events.empty? and @project.nil? %>