BigW Consortium Gitlab

_file_samples.html.haml 751 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
- if @transaction.file_samples.empty?
  .nothing-here-block
    = t('sherlock.no_file_samples')
- else
  .table-holder
    %table.table
      %thead
        %tr
          %th= t('sherlock.time_inclusive')
10
          %th= t('sherlock.count')
11 12 13 14 15 16 17 18
          %th= t('sherlock.path')
          %th
      %tbody
        - @transaction.sorted_file_samples.each do |sample|
          %tr
            %td
              = sample.duration.round(2)
              = t('sherlock.milliseconds')
19
            %td= @transaction.view_counts.fetch(sample.file, 1)
20 21 22 23 24
            %td= sample.relative_path
            %td
              = link_to(t('sherlock.view'),
                sherlock_transaction_file_sample_path(@transaction, sample),
                class: 'btn btn-xs')