diff --git a/lib/rails-footnotes/notes/queries_note.rb b/lib/rails-footnotes/notes/queries_note.rb index 1f91da2..9a7e32d 100644 --- a/lib/rails-footnotes/notes/queries_note.rb +++ b/lib/rails-footnotes/notes/queries_note.rb @@ -33,18 +33,25 @@ def title end def content - html = '' + html = '
+ #{escape(event.type.to_s.upcase)} (#{sql_links.join(' | ')})
+ + |
+ + #{print_query(event.payload[:sql])} + | +#{print_name_and_time(event.payload[:name], event.duration / 1000.0)} | +