Sha256: 071e28757a90c4b9442a1862b8b38aa9fc002c0516f493b6826796617e5e0bbe

Contents?: true

Size: 1002 Bytes

Versions: 10

Compression:

Stored size: 1002 Bytes

Contents

<div id="request_<%=request_id%>">
  <% panels.each do |panel| %>
    <% if panel.has_content? %>
      <div class="panel_content" id="<%= panel.camelized_name %>Panel">
        <div class="panel_controls">
          <form action="#">
            <select id="request_id_menu" name="current_request">
              <% requests.sort{|l,r| r[:id] <=> l[:id]}.each do |request| %>
                <option value="<%= request[:id] %>" <%= request[:id] == request_id ? "selected" : "" %>>
                <%= request[:id] %>: <%= request[:method] %> <%= request[:path] %>
                </option>
              <% end %>
            </select>
          </form>
          <a href="" class="rack-insight_close">Close</a>
        </div>
        <% begin %>
          <%=  panel.content_for_request(request_id) %>
        <% rescue StandardError => ex %>
          <%= "Error #{ex.class.name}: #{ex.message} <!-- #{ex.backtrace.join("\n")} -->" %>
        <% end %>
      </div>
    <% end %>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rack-insight-0.6.3 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.6.2 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.5.30 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.5.29 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.5.28 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.5.27 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.5.26 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.5.25 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.5.24 lib/rack/insight/views/request_fragment.html.erb
rack-insight-0.5.23 lib/rack/insight/views/request_fragment.html.erb