<%= link_to_remote 'Delete Visible', :url => { :action => 'destroy_all' }, :with => "ExceptionLogger.deleteAll()" %> <% if @exception_pages.page_count > 1 %> :: Pages: <%= pagination_remote_links @exception_pages, :params => { :action => :index } %> <% end %>

Exceptions <%= "(filtered)" if filtered? %>

<% exceptions.each do |exc| -%> exception"> <% end -%>
Exception Date
<%= link_to_remote "#{exc.exception_class} in #{exc.controller_action}", :url => { :action => 'show', :id => exc } %>
<%=h exc.message %>
<% if Date.today == exc.created_at.to_date if exc.created_at > Time.now - 4.hours %> <%= time_ago_in_words(exc.created_at).gsub(/about /,"~ ") %> ago <% else %> Today, <%= exc.created_at.strftime("%l:%M %p") %> <% end %> <% else %> <%= exc.created_at.strftime("%b %d, %Y") %> <% end %> <%= link_to_remote 'Delete', {:url => { :action => 'destroy', :id => exc }} , :class => "util" %>
<% if @exception_pages.page_count > 1 %>
Pages: <%= pagination_remote_links @exception_pages, :params => { :action => :index } %>
<% end %>