BigW Consortium Gitlab

index.html.haml 1.23 KB
Newer Older
1 2 3
- page_title t('sherlock.title')
- header_title t('sherlock.title'), sherlock_transactions_path

4
.row-content-block
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
  .pull-right
    = link_to(destroy_all_sherlock_transactions_path,
      class: 'btn btn-danger',
      method: :delete) do
      %i.fa.fa-trash
      = t('sherlock.delete_all_transactions')
  .oneline= t('sherlock.introduction')

- if @transactions.empty?
  .nothing-here-block= t('sherlock.no_transactions')
- else
  .table-holder
    %table.table
      %thead
        %tr
          %th= t('sherlock.type')
          %th= t('sherlock.path')
          %th= t('sherlock.time')
          %th= t('sherlock.queries')
          %th= t('sherlock.finished_at')
          %th
      %tbody
        - @transactions.each do |trans|
          %tr
            %td= trans.type
30 31 32
            %td
              %span{title: trans.path}
                = truncate(trans.path, length: 70)
33 34 35 36 37 38 39 40 41 42
            %td
              = trans.duration.round(2)
              = t('sherlock.seconds')
            %td= trans.queries.length
            %td
              = time_ago_in_words(trans.finished_at)
              = t('sherlock.ago')
            %td
              = link_to(sherlock_transaction_path(trans), class: 'btn btn-xs') do
                = t('sherlock.view')