<% if e.is_a? Issue %>
<%= e.event_datetime.strftime("%H:%M") %> <%= link_to_issue e %>: <%=h e.subject %>
<%= e.author.name %>
<% elsif e.is_a? Journal %>
<%= e.created_on.strftime("%H:%M") %> <%= link_to_issue e.journalized %>
(<%=h (status = IssueStatus.find_by_id(e.details.first.value)) ? status.name : '?' %>): <%=h e.journalized.subject %>
<%=h e.user.name %><%=h ": #{truncate(e.notes, 500)}" unless e.notes.blank? %>
<% elsif e.is_a? News %>
<%= e.event_datetime.strftime("%H:%M") %> <%=l(:label_news)%>: <%= link_to h(e.title), :controller => 'news', :action => 'show', :id => e %>
<% unless e.summary.empty? %><%=h e.summary %>
<% end %>
<%= e.author.name %>
<% elsif (e.is_a? Attachment) and (e.container.is_a? Version) %>
<%= e.event_datetime.strftime("%H:%M") %> <%=l(:label_attachment)%> (<%=h e.container.name %>): <%= link_to e.filename, :controller => 'projects', :action => 'list_files', :id => @project %>
<%= e.author.name %>
<% elsif (e.is_a? Attachment) and (e.container.is_a? Document) %>
<%= e.event_datetime.strftime("%H:%M") %> <%=l(:label_attachment)%>: <%= e.filename %> (<%= link_to h(e.container.title), :controller => 'documents', :action => 'show', :id => e.container %>)
<%= e.author.name %>
<% elsif e.is_a? Document %>
<%= e.event_datetime.strftime("%H:%M") %> <%=l(:label_document)%>: <%= link_to h(e.title), :controller => 'documents', :action => 'show', :id => e %>
<% elsif e.is_a? WikiContent.versioned_class %>
<%= e.event_datetime.strftime("%H:%M") %> <%=l(:label_wiki_edit)%>: <%= link_to h(WikiPage.pretty_title(e.title)), :controller => 'wiki', :page => e.title %>
(<%= link_to '#' + e.version.to_s, :controller => 'wiki', :page => e.title, :version => e.version %><%= ', ' + link_to('diff', :controller => 'wiki', :action => 'diff', :page => e.title, :version => e.version) if e.version > 1 %>)
<% unless e.comments.blank? %><%=h e.comments %><% end %>
<% elsif e.is_a? Changeset %>
<%= e.event_datetime.strftime("%H:%M") %> <%=l(:label_revision)%> <%= link_to h(e.revision), :controller => 'repositories', :action => 'revision', :id => @project, :rev => e.revision %>
<%=h e.committer.blank? ? "anonymous" : e.committer %><%= h(": #{truncate(e.comments, 500)}") unless e.comments.blank? %>
<% end %>
<%= l(:label_no_data) %>
<% end %><% @event_types.each do |t| %>
<% end %>
<%= submit_tag l(:button_apply), :class => 'button-small' %>
<% end %> <% end %>