summaryrefslogtreecommitdiff
path: root/app/views/sherlock/transactions/_file_samples.html.haml
blob: 0afdbc8dffa0531d5a9eb5b0afa87de88a51d036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- 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')
          %th= t('sherlock.path')
          %th
      %tbody
        - @transaction.sorted_file_samples.each do |sample|
          %tr
            %td
              = sample.duration.round(2)
              = t('sherlock.milliseconds')
            %td= sample.relative_path
            %td
              = link_to(t('sherlock.view'),
                sherlock_transaction_file_sample_path(@transaction, sample),
                class: 'btn btn-xs')