templates/report/backtrace/frames.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Thu, 24 Sep 2015 01:49:55 +0200
changeset 75 e3912669678c
parent 40 373c7f784bc2
child 78 0ebef32c34af
permissions -rw-r--r--
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

%= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
  %= t thead => begin
    %= t tr => begin
      %= t th => "Frame"
      %= t th => "Module"
      %= t th => (class => "signature-column") => "Signature"
      %= t th => "Source"
    %= end
  %= end
  % $thread->each_frame(sub { my $frame = shift;
  %= t tr => begin
    %= t td => (class => 'col-md-1') => begin
      %= $frame->frame_number
    %  end
    %= t td => (class => 'col-md-2') => begin
      %= $frame->module_name
    % end
    %= t td => (class => 'col-md-5') => begin
      %= $frame->function_name
    % end
    %= t td => (class => 'col-md-4') => begin
      %= $frame->file_link
    % end
  % end
  % });
% end