Overhaul the repository link functionality
- Fix regex (repositories with number or other characters were not accepted)
- Url escape template arguments by default (the "do not escape" <%== $var %> markers can be used if needed)
- Also support a generic repository type instead of only repotype:repopath in the configuration ($repotype:$repopath has priority over $repotype if both are defined)
- Cache compiled templates
<a data-toggle="collapse" href="#backtrace-crashing-thread"><h3>Crashing thread top frames</h3></a>
<div id="backtrace-crashing-thread" class="collapse in">
%= include 'report/backtrace/frames', thread => $crashing_thread
</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) {
%= 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', thread => $thread
% $thread_id = $thread_id + 1;
% end
% }
</div>