debian-mirror-gitlab/app/views/sherlock/queries/_general.html.haml

55 lines
1.5 KiB
Text
Raw Normal View History

2015-11-26 14:37:03 +05:30
.prepend-top-default
.panel.panel-default
.panel-heading
%strong
= t('sherlock.general')
%ul.well-list
%li
%span.light
#{t('sherlock.time')}:
%strong
= @query.duration.round(4)
= t('sherlock.milliseconds')
%li
- frame = @query.last_application_frame
2015-11-26 14:37:03 +05:30
%span.light
#{t('sherlock.origin')}:
%strong
- 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')
= frame.line
2015-11-26 14:37:03 +05:30
.panel.panel-default
.panel-heading
.pull-right
2017-08-17 22:00:37 +05:30
%button.js-clipboard-trigger.btn.btn-xs{ title: t('sherlock.copy_to_clipboard'), type: :button }
2015-11-26 14:37:03 +05:30
%i.fa.fa-clipboard
%pre.hidden
= @query.formatted_query
%strong
= t('sherlock.query')
%ul.well-list
%li
.code.js-syntax-highlight.sherlock-code
:preserve
#{highlight("#{@query.id}.sql", @query.formatted_query)}
.panel.panel-default
.panel-heading
.pull-right
2017-08-17 22:00:37 +05:30
%button.js-clipboard-trigger.btn.btn-xs{ title: t('sherlock.copy_to_clipboard'), type: :button }
2015-11-26 14:37:03 +05:30
%i.fa.fa-clipboard
%pre.hidden
= @query.explain
%strong
= t('sherlock.query_plan')
%ul.well-list
%li
.code.js-syntax-highlight.sherlock-code
%pre
%code= @query.explain