2015-11-04 13:13:19 -05:00
|
|
|
- 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')
|
2015-11-09 06:36:01 -05:00
|
|
|
%th= t('sherlock.count')
|
2015-11-04 13:13:19 -05:00
|
|
|
%th= t('sherlock.path')
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- @transaction.sorted_file_samples.each do |sample|
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= sample.duration.round(2)
|
|
|
|
= t('sherlock.milliseconds')
|
2015-11-09 06:36:01 -05:00
|
|
|
%td= @transaction.view_counts.fetch(sample.file, 1)
|
2015-11-04 13:13:19 -05:00
|
|
|
%td= sample.relative_path
|
|
|
|
%td
|
|
|
|
= link_to(t('sherlock.view'),
|
|
|
|
sherlock_transaction_file_sample_path(@transaction, sample),
|
|
|
|
class: 'btn btn-xs')
|