2015-11-26 14:37:03 +05:30
|
|
|
- if @transaction.queries.empty?
|
|
|
|
.nothing-here-block
|
|
|
|
= t('sherlock.no_queries')
|
|
|
|
- else
|
|
|
|
.table-holder
|
|
|
|
%table.table#sherlock-queries
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= t('sherlock.time')
|
|
|
|
%th= t('sherlock.query')
|
2016-04-02 18:10:28 +05:30
|
|
|
%th
|
2015-11-26 14:37:03 +05:30
|
|
|
%tbody
|
|
|
|
- @transaction.sorted_queries.each do |query|
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= query.duration.round(2)
|
|
|
|
= t('sherlock.milliseconds')
|
|
|
|
%td
|
|
|
|
.code.js-syntax-highlight.sherlock-code
|
2018-12-13 13:39:08 +05:30
|
|
|
= highlight("#{query.id}.sql", query.formatted_query, language: 'sql')
|
2015-11-26 14:37:03 +05:30
|
|
|
%td
|
|
|
|
= link_to(t('sherlock.view'),
|
|
|
|
sherlock_transaction_query_path(@transaction, query),
|
2018-11-08 19:23:39 +05:30
|
|
|
class: 'btn btn-sm')
|