2015-11-04 13:13:19 -05:00
|
|
|
.prepend-top-default
|
2018-04-10 13:11:34 -04:00
|
|
|
.card
|
|
|
|
.card-header
|
2015-11-04 13:13:19 -05:00
|
|
|
%strong
|
|
|
|
= t('sherlock.general')
|
2018-05-29 11:08:35 -04:00
|
|
|
%ul.content-list
|
2015-11-04 13:13:19 -05:00
|
|
|
%li
|
|
|
|
%span.light
|
|
|
|
#{t('sherlock.time')}:
|
|
|
|
%strong
|
|
|
|
= @query.duration.round(4)
|
|
|
|
= t('sherlock.milliseconds')
|
|
|
|
%li
|
2016-06-06 18:27:26 -04:00
|
|
|
- frame = @query.last_application_frame
|
2015-11-04 13:13:19 -05:00
|
|
|
%span.light
|
|
|
|
#{t('sherlock.origin')}:
|
|
|
|
%strong
|
2016-06-06 18:27:26 -04:00
|
|
|
- if defined?(BetterErrors)
|
|
|
|
= link_to(frame.path, BetterErrors.editor[frame.path, frame.line])
|
|
|
|
- else
|
|
|
|
= frame.path
|
2015-11-04 13:13:19 -05:00
|
|
|
%small.light
|
|
|
|
= t('sherlock.line')
|
2016-06-06 18:27:26 -04:00
|
|
|
= frame.line
|
2015-11-04 13:13:19 -05:00
|
|
|
|
2018-04-10 13:11:34 -04:00
|
|
|
.card
|
|
|
|
.card-header
|
2018-04-09 13:42:45 -04:00
|
|
|
.float-right
|
2018-04-12 17:13:36 -04:00
|
|
|
%button.js-clipboard-trigger.btn.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button }
|
2018-07-23 10:58:21 -04:00
|
|
|
= sprite_icon('duplicate')
|
2015-11-04 13:13:19 -05:00
|
|
|
%pre.hidden
|
|
|
|
= @query.formatted_query
|
|
|
|
%strong
|
|
|
|
= t('sherlock.query')
|
2018-05-29 11:08:35 -04:00
|
|
|
%ul.content-list
|
2015-11-04 13:13:19 -05:00
|
|
|
%li
|
|
|
|
.code.js-syntax-highlight.sherlock-code
|
|
|
|
:preserve
|
|
|
|
#{highlight("#{@query.id}.sql", @query.formatted_query)}
|
|
|
|
|
2018-04-10 13:11:34 -04:00
|
|
|
.card
|
|
|
|
.card-header
|
2018-04-09 13:42:45 -04:00
|
|
|
.float-right
|
2018-04-12 17:13:36 -04:00
|
|
|
%button.js-clipboard-trigger.btn.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button }
|
2018-07-23 10:58:21 -04:00
|
|
|
= sprite_icon('duplicate')
|
2015-11-04 13:13:19 -05:00
|
|
|
%pre.hidden
|
|
|
|
= @query.explain
|
|
|
|
%strong
|
|
|
|
= t('sherlock.query_plan')
|
2018-05-29 11:08:35 -04:00
|
|
|
%ul.content-list
|
2015-11-04 13:13:19 -05:00
|
|
|
%li
|
|
|
|
.code.js-syntax-highlight.sherlock-code
|
|
|
|
%pre
|
|
|
|
%code= @query.explain
|