Sha256: 604146a9d18e1711f03306240d087d5f1df31bbfae7b905350965c0cf0250c45

Contents?: true

Size: 771 Bytes

Versions: 7

Compression:

Stored size: 771 Bytes

Contents

<% longest_duration = metrics.first.try(:duration) -%>
<table>
  <thead>
    <tr>
      <th>ID</th>
      <% if columns.include?(:name) %><th>Name</th><% end %>
      <% if columns.include?(:identifier) %><th>Identifier</th><% end %>
      <% if columns.include?(:action) %><th>Action</th><% end %>
      <% if columns.include?(:when) %><th>When</th><% end %>
      <% if columns.include?(:duration) %><th>Duration (ms)</th><% end %>
    </tr>
  </thead>
  <tbody>
    <% for metric in metrics -%>
      <%= render :partial => 'metric_row', :locals => {
        :indent => 0,
        :columns => columns,
        :metric => metric,
        :longest_duration => longest_duration,
        :include_children => include_children
      } %>
    <% end -%>
  </tbody>
</table>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
system-metrics-0.2.5 app/views/system_metrics/metrics/_metric_table.html.erb
system-metrics-0.2.4 app/views/system_metrics/metrics/_metric_table.html.erb
system-metrics-0.2.3 app/views/system_metrics/metrics/_metric_table.html.erb
system-metrics-0.2.2 app/views/system_metrics/metrics/_metric_table.html.erb
system-metrics-0.2.1 app/views/system_metrics/metrics/_metric_table.html.erb
system-metrics-0.2.0 app/views/system_metrics/metrics/_metric_table.html.erb
system-metrics-0.1.0 app/views/system_metrics/metrics/_metric_table.html.erb