2015-11-04 18:13:19 +00:00
|
|
|
- page_title t('sherlock.title')
|
|
|
|
- header_title t('sherlock.title'), sherlock_transactions_path
|
|
|
|
|
2016-04-25 20:02:15 +00:00
|
|
|
.row-content-block
|
2018-04-09 17:42:45 +00:00
|
|
|
.float-right
|
2015-11-04 18:13:19 +00:00
|
|
|
= link_to(destroy_all_sherlock_transactions_path,
|
2020-10-20 15:08:57 +00:00
|
|
|
class: 'gl-button btn btn-danger',
|
2015-11-04 18:13:19 +00:00
|
|
|
method: :delete) do
|
2020-08-21 09:10:08 +00:00
|
|
|
= sprite_icon('remove')
|
2015-11-04 18:13:19 +00:00
|
|
|
= 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 11:42:28 +00:00
|
|
|
%td
|
2016-12-26 10:47:16 +00:00
|
|
|
%span{ title: trans.path }
|
2015-11-09 11:42:28 +00:00
|
|
|
= truncate(trans.path, length: 70)
|
2015-11-04 18:13:19 +00:00
|
|
|
%td
|
|
|
|
= trans.duration.round(2)
|
|
|
|
= t('sherlock.seconds')
|
|
|
|
%td= trans.queries.length
|
|
|
|
%td
|
2018-04-25 15:58:56 +00:00
|
|
|
= time_ago_with_tooltip trans.finished_at
|
2015-11-04 18:13:19 +00:00
|
|
|
%td
|
2020-10-20 15:08:57 +00:00
|
|
|
= link_to(sherlock_transaction_path(trans), class: 'gl-button btn btn-sm') do
|
2015-11-04 18:13:19 +00:00
|
|
|
= t('sherlock.view')
|