<% traces = [ ["Application Trace", @exception.application_backtrace], ["Framework Trace", @exception.framework_backtrace], ["Full Trace", @exception.clean_backtrace] ] names = traces.collect {|name, trace| name} %>

RAILS_ROOT: <%= defined?(RAILS_ROOT) ? RAILS_ROOT : "unset" %>

<% names.each do |name| %> <% show = "document.getElementById('#{name.gsub /\s/, '-'}').style.display='block';" hide = (names - [name]).collect {|hide_name| "document.getElementById('#{hide_name.gsub /\s/, '-'}').style.display='none';"} %> <%= name %> <%= '|' unless names.last == name %> <% end %> <% traces.each do |name, trace| %>
;">
<%= trace.join "\n" %>
<% end %>