2015-11-04 13:13:19 -05:00
|
|
|
- page_title t('sherlock.title')
|
|
|
|
- header_title t('sherlock.title'), sherlock_transactions_path
|
|
|
|
|
2016-04-25 16:02:15 -04:00
|
|
|
.row-content-block
|
2015-11-04 13:13:19 -05:00
|
|
|
.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
|
2015-11-09 06:42:28 -05:00
|
|
|
%td
|
2016-12-26 05:47:16 -05:00
|
|
|
%span{ title: trans.path }
|
2015-11-09 06:42:28 -05:00
|
|
|
= truncate(trans.path, length: 70)
|
2015-11-04 13:13:19 -05:00
|
|
|
%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')
|