diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-07 01:27:26 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-06-07 01:27:26 +0300 |
commit | fbd2169f9948ee039efe96f48229f4c9ced8c412 (patch) | |
tree | ed5bd0ec6a0c9416bc62f99ab5ea4a0977c31cef /app/views/sherlock/queries/_general.html.haml | |
parent | 740a6ecba07a056fca481622b4fa89939c225987 (diff) |
Use better_errors editor links in sherlock
Remember to configure your `better_errors` editor to point to your program of preference
Diffstat (limited to 'app/views/sherlock/queries/_general.html.haml')
-rw-r--r-- | app/views/sherlock/queries/_general.html.haml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/sherlock/queries/_general.html.haml b/app/views/sherlock/queries/_general.html.haml index 549b47430e6..7073c0f4d90 100644 --- a/app/views/sherlock/queries/_general.html.haml +++ b/app/views/sherlock/queries/_general.html.haml @@ -11,13 +11,17 @@ = @query.duration.round(4) = t('sherlock.milliseconds') %li + - frame = @query.last_application_frame %span.light #{t('sherlock.origin')}: %strong - = @query.last_application_frame.path + - if defined?(BetterErrors) + = link_to(frame.path, BetterErrors.editor[frame.path, frame.line]) + - else + = frame.path %small.light = t('sherlock.line') - = @query.last_application_frame.line + = frame.line .panel.panel-default .panel-heading |