aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/_source.erb
blob: 38429cb78e4d886086ad13f8f96d59848c7899bd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
                        














                                                                       
     
                                                                                                                                      
      




          
         
<% if @source_extract %>
<div class="source">
<div class="info">
  Extracted source (around line <strong>#<%= @line_number %></strong>):
</div>
<div class="data">
  <table cellpadding="0" cellspacing="0" class="lines">
      <tr>
        <td>
          <pre class="line_numbers">
            <% @source_extract.keys.each do |line_number| %>
<span><%= line_number -%></span>
            <% end %>
          </pre>
        </td>
<td width="100%">
<pre>
<% @source_extract.each do |line, source| -%><div class="line<%= " active" if line == @line_number -%>"><%= source -%></div><% end -%>
</pre>
</td>
    </tr>
  </table>
</div>
</div>
<% end %>