debian-mirror-gitlab/app/views/sherlock/transactions/index.html.haml

42 lines
1.2 KiB
Text
Raw Normal View History

2015-11-26 14:37:03 +05:30
- page_title t('sherlock.title')
- header_title t('sherlock.title'), sherlock_transactions_path
2016-06-02 11:05:42 +05:30
.row-content-block
2018-11-08 19:23:39 +05:30
.float-right
2015-11-26 14:37:03 +05:30
= link_to(destroy_all_sherlock_transactions_path,
2021-01-29 00:20:46 +05:30
class: 'gl-button btn btn-danger',
2015-11-26 14:37:03 +05:30
method: :delete) do
2020-11-24 15:15:51 +05:30
= sprite_icon('remove')
2015-11-26 14:37:03 +05:30
= 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
%td
2017-08-17 22:00:37 +05:30
%span{ title: trans.path }
2015-11-26 14:37:03 +05:30
= truncate(trans.path, length: 70)
%td
= trans.duration.round(2)
= t('sherlock.seconds')
%td= trans.queries.length
%td
2018-10-15 14:42:47 +05:30
= time_ago_with_tooltip trans.finished_at
2015-11-26 14:37:03 +05:30
%td
2021-01-29 00:20:46 +05:30
= link_to(sherlock_transaction_path(trans), class: 'gl-button btn btn-sm') do
2015-11-26 14:37:03 +05:30
= t('sherlock.view')