Sha256: f3073e328086e2e7e3011bb2fbd0586eb138f3b825eb5a1dfd7829f8c0538b8d

Contents?: true

Size: 1.75 KB

Versions: 1

Compression:

Stored size: 1.75 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><%= ms e[:duration] %></td>
            <td><%= ms e[:view_runtime] %></td>
            <td><%= 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

1 entries across 1 versions & 1 rubygems

Version Path
rails_performance-0.0.1.17 app/views/rails_performance/recent.html.erb