2015-11-26 14:37:03 +05:30
|
|
|
.prepend-top-default
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2015-11-26 14:37:03 +05:30
|
|
|
%strong
|
|
|
|
= t('sherlock.general')
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2015-11-26 14:37:03 +05:30
|
|
|
%li
|
|
|
|
%span.light
|
|
|
|
#{t('sherlock.time')}:
|
|
|
|
%strong
|
|
|
|
= @query.duration.round(4)
|
|
|
|
= t('sherlock.milliseconds')
|
|
|
|
%li
|
2016-06-16 23:09:34 +05:30
|
|
|
- frame = @query.last_application_frame
|
2015-11-26 14:37:03 +05:30
|
|
|
%span.light
|
|
|
|
#{t('sherlock.origin')}:
|
|
|
|
%strong
|
2016-06-16 23:09:34 +05:30
|
|
|
- if defined?(BetterErrors)
|
|
|
|
= link_to(frame.path, BetterErrors.editor[frame.path, frame.line])
|
|
|
|
- else
|
|
|
|
= frame.path
|
2015-11-26 14:37:03 +05:30
|
|
|
%small.light
|
|
|
|
= t('sherlock.line')
|
2016-06-16 23:09:34 +05:30
|
|
|
= frame.line
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
|
|
|
.float-right
|
|
|
|
%button.js-clipboard-trigger.btn.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button }
|
2020-03-09 13:42:32 +05:30
|
|
|
= sprite_icon('copy-to-clipboard')
|
2015-11-26 14:37:03 +05:30
|
|
|
%pre.hidden
|
|
|
|
= @query.formatted_query
|
|
|
|
%strong
|
|
|
|
= t('sherlock.query')
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2015-11-26 14:37:03 +05:30
|
|
|
%li
|
|
|
|
.code.js-syntax-highlight.sherlock-code
|
|
|
|
:preserve
|
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
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
|
|
|
.float-right
|
|
|
|
%button.js-clipboard-trigger.btn.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button }
|
2020-03-09 13:42:32 +05:30
|
|
|
= sprite_icon('copy-to-clipboard')
|
2015-11-26 14:37:03 +05:30
|
|
|
%pre.hidden
|
|
|
|
= @query.explain
|
|
|
|
%strong
|
|
|
|
= t('sherlock.query_plan')
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2015-11-26 14:37:03 +05:30
|
|
|
%li
|
|
|
|
.code.js-syntax-highlight.sherlock-code
|
|
|
|
%pre
|
|
|
|
%code= @query.explain
|