summaryrefslogtreecommitdiff
path: root/app/views/sherlock/queries/_backtrace.html.haml
blob: 4f5146cefb9b4d1e5dfc7cb5407e35e49f81b1ad (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
.prepend-top-default
  .card
    .card-header
      %strong
        = t('sherlock.application_backtrace')
    %ul.well-list
      - @query.application_backtrace.each do |location|
        %li
          %strong
            - if defined?(BetterErrors)
              = link_to(location.path, BetterErrors.editor[location.path, location.line])
            - else
              = location.path
          %small.light
            = t('sherlock.line')
            = location.line

  .card
    .card-header
      %strong
        = t('sherlock.full_backtrace')
    %ul.well-list
      - @query.backtrace.each do |location|
        %li
          - if location.application?
            %strong= location.path
          - else
            = location.path
          %small.light
            = t('sherlock.line')
            = location.line