Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_general.html.haml « queries « sherlock « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd810ae10ad319f89049942194a8687d7309d257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.gl-mt-3
  .card
    .card-header
      %strong
        = t('sherlock.general')
    %ul.content-list
      %li
        %span.light
          #{t('sherlock.time')}:
        %strong
          = @query.duration.round(4)
          = t('sherlock.milliseconds')
      %li
        - frame = @query.last_application_frame
        %span.light
          #{t('sherlock.origin')}:
        %strong
          - if defined?(BetterErrors)
            = link_to(frame.path, BetterErrors.editor[frame.path, frame.line])
          - else
            = frame.path
        %small.light
          = t('sherlock.line')
          = frame.line

  .card
    .card-header
      .float-right
        %button.js-clipboard-trigger.gl-button.btn.btn-default.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button }
          = sprite_icon('copy-to-clipboard')
        %pre.hidden
          = @query.formatted_query
      %strong
        = t('sherlock.query')
    %ul.content-list
      %li
        .code.js-syntax-highlight.sherlock-code
          :preserve
            #{highlight("#{@query.id}.sql", @query.formatted_query, language: 'sql')}

  .card
    .card-header
      .float-right
        %button.js-clipboard-trigger.gl-button.btn.btn-default.btn-sm{ title: t('sherlock.copy_to_clipboard'), type: :button }
          = sprite_icon('copy-to-clipboard')
        %pre.hidden
          = @query.explain
      %strong
        = t('sherlock.query_plan')
    %ul.content-list
      %li
        .code.js-syntax-highlight.sherlock-code
          %pre
            %code= @query.explain