--- a/templates/report/backtrace.html.ep Wed Jul 30 23:49:59 2014 +0200
+++ b/templates/report/backtrace.html.ep Thu Jul 31 00:05:00 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>