2011-04-07 01:38:48 +08:00
|
|
|
<%
|
|
|
|
content_for :page_title, "Error Reports"
|
|
|
|
add_crumb "Error Reports"
|
|
|
|
%>
|
2011-02-01 09:57:29 +08:00
|
|
|
<% @reports.each do |report| %>
|
|
|
|
<div style="margin-bottom: 20px;">
|
|
|
|
<h3><%= h(report.message) %></h3>
|
|
|
|
<div style="border: 1px solid #eee; -moz-border-radius: 5px; padding: 5px 20px;">
|
|
|
|
<%= h(report.url) %><br/>
|
2011-04-07 01:38:48 +08:00
|
|
|
<% if report.user_id %>
|
|
|
|
<%= link_to report.user.try(:name), user_url(report.user_id) %>
|
|
|
|
<% end %>
|
2011-02-01 09:57:29 +08:00
|
|
|
<pre style="font-size: 0.8em; margin-left: 20px; height: 150px; overflow: auto;">
|
|
|
|
<%= h(report.backtrace) %>
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|