lib/stackprof-webnav/views/method.haml in stackprof-webnav-0.1.0 vs lib/stackprof-webnav/views/method.haml in stackprof-webnav-1.0.0
- old
+ new
@@ -1,14 +1,17 @@
%h3 StackProf Navigator - #{@action} (#{@frames.count} frames)
%hr
-%a{:href => '/'} ← Back to overview
-%br
+%p
+ %a{:href => url_for("/overview")} ← Back to overview
- @frames.each do |frame|
- %h4
- %a{:href => file_url(frame[:location])}= frame[:location]
+ %a{:href => url_for("/file", path: frame[:location])}
+ %button.btn
+ Browse
+ = frame[:location]
+
- if frame[:callers].any?
%table
%thead
%th Callers
%th
@@ -19,11 +22,11 @@
%tr
%td
%td= caller[:weight]
%td= caller[:pct]
%td
- %a{:href => method_url(caller[:method])}
+ %a{:href => url_for("/method", name: caller[:method])}
= caller[:method]
- if frame[:callees].any?
%table
%thead
@@ -36,10 +39,10 @@
%tr
%td
%td= caller[:weight]
%td= caller[:pct]
%td
- %a{:href => method_url(caller[:method])}
+ %a{:href => url_for("/method", name: caller[:method])}
= caller[:method]
%h4 Code
!= frame[:source]
%hr