Merge SQL module
authorVincent Tondellier <tonton+hg@team1664.org>
Sat, 02 Aug 2014 23:48:50 +0200
changeset 26 debc3c566994
parent 25 1a1cf5c35cfb (diff)
parent 24 b69b7aa98a1d (current diff)
child 27 2b158020f0d5
Merge SQL module
--- a/templates/report/backtrace.html.ep	Sat Aug 02 23:46:30 2014 +0200
+++ b/templates/report/backtrace.html.ep	Sat Aug 02 23:48:50 2014 +0200
@@ -4,8 +4,15 @@
 </div>
 <a data-toggle="collapse" href="#backtrace-all-threads"><h3>All threads</h3></a>
 <div id="backtrace-all-threads" class="collapse in">
+  % my $thread_id = 0;
   % foreach my $thread(@$threads) {
-  %= include 'report/backtrace/frames', frames => $thread->{frames}
+    %= t a => ( 'data-toggle' => "collapse", href => "#backtrace-thread-$thread_id" ) => begin
+      %= t h4 => "Thread $thread_id"
+    % end
+    %= t div => ( id => "backtrace-thread-$thread_id", class => "collapse in" ) => begin
+      %= include 'report/backtrace/frames', frames => $thread->{frames}
+      % $thread_id = $thread_id + 1;
+    % end
   % }
 </div>