Sha256: ca6eb0fca0875ec396f6d269601ebbd7d506d47014e256581703d0bf228d2a50

Contents?: true

Size: 860 Bytes

Versions: 3

Compression:

Stored size: 860 Bytes

Contents

<h4><%= heading %></h4>
<table class="table table-striped">
  <thead>
    <tr>
      <th>File Name</th>
      <th>Method Name</th>
      <th>Line Number</th>
      <th>Count</th>
    </tr>
  </thead>
  <tbody>
    <% method_stats.each do |method_name, color_and_count| %>
      <tr>
        <td>
          <%= color_and_count[:file_name] %>
        </td>
        <td>
          <% if Deforest.render_source_on_browser %>
            <a href=<%= file_path(path: color_and_count[:file_name], line_no: color_and_count[:line_no]) %>>
              <%= method_name %>
            </a>
          <% else %>
            <%= method_name %>
          <% end %>
        </td>
        <td>
          <%= color_and_count[:line_no] %>
        </td>
        <td>
          <%= color_and_count[:total_call_count] %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deforest-1.0.2 app/views/deforest/files/_percentile_table.html.erb
deforest-1.0.1 app/views/deforest/files/_percentile_table.html.erb
deforest-1.0.0 app/views/deforest/files/_percentile_table.html.erb