Sha256: efd27a81c55467e2d4cf8ac7424046605dc5368be39ab34a9d4019bf6a5d888e

Contents?: true

Size: 1.18 KB

Versions: 35

Compression:

Stored size: 1.18 KB

Contents

<h3>ActiveResource HTTP Queries</h3>
<table class="sortable">
<thead>
  <tr>
    <th class="time">Time&nbsp;(ms)</th>
    <th class="query">Query</th>
    <th class="backtrace">Backtrace</th>
    <th class="result">Result</th>
  </tr>
</thead>
<tbody>
  <% i = 1 %>
  <% queries.each do |query| %>
    <tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
      <td><%= query.human_time %></td>
      <td class="syntax"><%= query.path %><%= query.args.inspect %></td>
      <td>
        <% if query.has_backtrace? %>
          <a href="#" class="reveal_backtrace">Show Backtrace</a>
        <% end %>
      </td>
      <td>
        <a href="#" class="reveal_response">Show Response Body</a>
      </td>
    </tr>
    <tr style="display:none">
      <td></td>
      <td colspan="3">
        <ul>
          <% query.filtered_backtrace.each do |line| %>
            <li><%=h line %></li>
          <% end %>
        </ul>
      </td>
    </tr>
    <tr id="response" style="display:none">
      <td></td>
      <td colspan="3">
        <p><%= query.results %></p>
        <!-- <%= query.inspect %> -->
        <!-- <%= query.results.inspect %> -->
      </td>
    </tr>
    <% i += 1 %>
  <% end %>
</tbody>
</table>

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
rack-insight-0.6.4 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.6.3 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.6.2 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.30 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.29 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.28 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.27 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.26 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.25 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.24 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.23 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.22 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.21 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.20 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.19 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.18 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.17 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.16 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.15 lib/rack/insight/views/panels/active_resource.html.erb
rack-insight-0.5.14 lib/rack/insight/views/panels/active_resource.html.erb