lib/CrashTest/files/templates/report/crash.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 04 Dec 2016 01:16:39 +0100
changeset 120 1a0fa98037fa
parent 108 e4e5cfaf5814
permissions -rw-r--r--
Add Bug status table in the detailed report. Initial support for Bugzilla and Redmine

% title 'crash report';
% layout 'main';

%= t div => (class => 'panel panel-default') => begin
  %= t div => (class => 'panel-heading') => begin
    %= t h3 => (class => 'panel-title') => "Crash for $processed_data->{client_info}->{ProductName} $processed_data->{client_info}->{Version}"
  % end
  %= t div => (class => 'panel-body') => begin
    %= "Crash Time: " . human_date_from_epoch($processed_data->{client_info}->{CrashTime});
    <br/>
    % if(defined($crash_group)) {
      %= link_to "In crash group \"" . $crash_group->{title} . "\"" => url_for('group', uuid => $crash_group->{uuid})
    % }
    %= include("report/bugs", bug_links => $crash->{bug_links}, bugs_status => $bugs_status);
   % end
% end

%= t div => (class => 'tabbable') => begin
  %= t ul => (class => 'nav nav-tabs', id => 'report-tabs') => begin
    %= t li => (class => 'active') => begin
      %= t a => (href => '#backtrace', 'data-toggle' => 'tab') => 'Backtrace'
    % end
    %= t li => begin
      %= t a => (href => '#details', 'data-toggle' => 'tab') => 'Details'
    % end
    %= t li => begin
      %= t a => (href => '#modules', 'data-toggle' => 'tab') => 'Modules'
    % end
  % end

  %= t div => (class => 'tab-content') => begin
    %= t div => (class => 'tab-pane active', id => 'backtrace') => begin
    %= include('report/backtrace', crashing_thread => $crashing_thread, threads => $threads);
    % end
    %= t div => (class => 'tab-pane', id => 'details') => begin
     %= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
      %= include('report/crash_info', crash_info => $processed_data->{crash_info});
      %= include('report/client_info', client_info => $processed_data->{client_info});
      %= include('report/system_info', system_info => $processed_data->{system_info});
     % end
    % end
    %= t div => (class => 'tab-pane', id => 'modules') => begin
      %= include('report/modules', modules => $processed_data->{modules});
    % end
  % end
% end