Sha256: ad0184eb403a93cfd232ecef3988c6821691f0fb9e724a6b1bbda458ec6616c0

Contents?: true

Size: 1.79 KB

Versions: 2

Compression:

Stored size: 1.79 KB

Contents

<div class="card">
  <div class="card-content">

    <h2 class="subtitle">Recent Requests (last <%= RailsPerformance::Reports::RecentRequestsReport::TIME_WINDOW %> minutes)<h2>

    <table class="table is-fullwidth is-hoverable is-narrow">
      <thead>
        <tr>
          <th data-sort="string">Datetime</th>
          <th data-sort="string">Controller#action</th>
          <th data-sort="string">Method</th>
          <th data-sort="string">Format</th>
          <th data-sort="string">Path</th>
          <th data-sort="string">Status</th>
          <th data-sort="float">Duration</th>
          <th data-sort="float">Views</th>
          <th data-sort="float">DB</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <% @data.each do |e| %>
          <tr>
            <td><%= format_datetime e[:datetime] %></td>
            <td><%= link_to e[:controller] + '#' + e[:action], rails_performance.rails_performance_summary_path({controller_eq: e[:controller], action_eq: e[:action]}), remote: true %></td>
            <td><%= e[:method] %></td>
            <td><%= e[:format] %></td>
            <td><%= link_to_path(e) %></td>
            <td><%= status_tag e[:status] %></td>
            <td class="nowrap"><%= ms e[:duration] %></td>
            <td class="nowrap"><%= ms e[:view_runtime] %></td>
            <td class="nowrap"><%= ms e[:db_runtime] %></td>
            <td>
              <% if e[:request_id].present? %>
                <%= link_to rails_performance.rails_performance_trace_path(id: e[:request_id]), remote: true do %>
                  <span class="stats_icon_max"><%= icon 'activity' %></span>
                <% end %>
              <% end %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_performance-0.0.1.19 app/views/rails_performance/recent.html.erb
rails_performance-0.0.1.18 app/views/rails_performance/recent.html.erb