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 = '' self.events.each_with_index do |event, index| sql_links = [] sql_links << "trace" 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)}  -
+ + + + + HTML end + 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)}
' return html end