lib/action_dispatch/middleware/templates/rescues/_trace.html.erb in actionpack-6.1.7.10 vs lib/action_dispatch/middleware/templates/rescues/_trace.html.erb in actionpack-7.0.0.alpha1
- old
+ new
@@ -12,21 +12,21 @@
<a href="#" onclick="<%= hide.join %><%= show %>; return false;"><%= name %></a> <%= '|' unless names.last == name %>
<% end %>
<% traces.each do |name, trace| %>
<div id="<%= "#{name.gsub(/\s/, '-')}-#{error_index}" %>" style="display: <%= (name == trace_to_show) ? 'block' : 'none' %>;">
- <code style="font-size: 11px;">
+ <code class="traces">
<% trace.each do |frame| %>
<a class="trace-frames trace-frames-<%= error_index %>" data-exception-object-id="<%= frame[:exception_object_id] %>" data-frame-id="<%= frame[:id] %>" href="#">
<%= frame[:trace] %>
</a>
<br>
<% end %>
</code>
</div>
<% end %>
- <script type="text/javascript">
+ <script>
(function() {
var traceFrames = document.getElementsByClassName('trace-frames-<%= error_index %>');
var selectedFrame, currentSource = document.getElementById('frame-source-<%= error_index %>-0');
// Add click listeners for all stack frames