gitlab-org--gitlab-foss/app/views/sherlock/queries/_backtrace.html.haml
Alejandro Rodríguez fbd2169f99 Use better_errors editor links in sherlock
Remember to configure your `better_errors` editor to point to your program of preference
2016-06-06 18:27:26 -04:00

31 lines
861 B
Text

.prepend-top-default
.panel.panel-default
.panel-heading
%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
.panel.panel-default
.panel-heading
%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