templates/report/crash.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Tue, 16 Feb 2016 23:17:21 +0100
changeset 106 97bf7ebb6e44
parent 104 b75005d8b002
permissions -rw-r--r--
Fix error when a crash is not in a group (invalid crashs mostly)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     1
% title 'crash report';
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     2
% layout 'main';
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
     3
103
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     4
%= t div => (class => 'panel panel-default') => begin
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     5
  %= t div => (class => 'panel-heading') => begin
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     6
    %= t h3 => (class => 'panel-title') => "Crash for $processed_data->{client_info}->{ProductName} $processed_data->{client_info}->{Version}"
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     7
  % end
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
     8
  %= t div => (class => 'panel-body') => begin
104
b75005d8b002 Display dates in human format
Vincent Tondellier <tonton+hg@team1664.org>
parents: 103
diff changeset
     9
    %= "Crash Time: " . human_date_from_epoch($processed_data->{client_info}->{CrashTime});
b75005d8b002 Display dates in human format
Vincent Tondellier <tonton+hg@team1664.org>
parents: 103
diff changeset
    10
    <br/>
106
97bf7ebb6e44 Fix error when a crash is not in a group (invalid crashs mostly)
Vincent Tondellier <tonton+hg@team1664.org>
parents: 104
diff changeset
    11
    % if(defined($crash_group)) {
97bf7ebb6e44 Fix error when a crash is not in a group (invalid crashs mostly)
Vincent Tondellier <tonton+hg@team1664.org>
parents: 104
diff changeset
    12
      %= link_to "In crash group \"" . $crash_group->{title} . "\"" => url_for('group', uuid => $crash_group->{uuid})
97bf7ebb6e44 Fix error when a crash is not in a group (invalid crashs mostly)
Vincent Tondellier <tonton+hg@team1664.org>
parents: 104
diff changeset
    13
    % }
103
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
    14
   % end
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
    15
% end
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
    16
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
%= t div => (class => 'tabbable') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    18
  %= t ul => (class => 'nav nav-tabs', id => 'report-tabs') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    19
    %= t li => (class => 'active') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    20
      %= t a => (href => '#backtrace', 'data-toggle' => 'tab') => 'Backtrace'
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    21
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    22
    %= t li => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    23
      %= t a => (href => '#details', 'data-toggle' => 'tab') => 'Details'
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    24
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    25
    %= t li => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    26
      %= t a => (href => '#modules', 'data-toggle' => 'tab') => 'Modules'
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    27
    % end
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    28
  % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    29
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    30
  %= t div => (class => 'tab-content') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    31
    %= t div => (class => 'tab-pane active', id => 'backtrace') => begin
37
013953be0f3b Add a new backtrace-processing filter stack
Vincent Tondellier <tonton+hg@team1664.org>
parents: 2
diff changeset
    32
    %= include('report/backtrace', crashing_thread => $crashing_thread, threads => $threads);
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    33
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    34
    %= t div => (class => 'tab-pane', id => 'details') => begin
37
013953be0f3b Add a new backtrace-processing filter stack
Vincent Tondellier <tonton+hg@team1664.org>
parents: 2
diff changeset
    35
     %= t table => (class => 'table table-striped table-hover table-bordered table-condensed') => begin
78
0ebef32c34af Refactor everything
Vincent Tondellier <tonton+hg@team1664.org>
parents: 37
diff changeset
    36
      %= include('report/crash_info', crash_info => $processed_data->{crash_info});
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    37
      %= include('report/client_info', client_info => $processed_data->{client_info});
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    38
      %= include('report/system_info', system_info => $processed_data->{system_info});
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    39
     % end
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    40
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    41
    %= t div => (class => 'tab-pane', id => 'modules') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    42
      %= include('report/modules', modules => $processed_data->{modules});
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    43
    % end
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    44
  % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    45
% end