templates/report/crash.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 14 Feb 2016 23:56:24 +0100
changeset 104 b75005d8b002
parent 103 95f4e3c47dd4
child 106 97bf7ebb6e44
permissions -rw-r--r--
Display dates in human format
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/>
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
    11
    %= link_to "In crash group \"" . $crash_group->{title} . "\"" => url_for('group', uuid => $crash_group->{uuid})
95f4e3c47dd4 Add product, version and group at the top of the crash report page
Vincent Tondellier <tonton+hg@team1664.org>
parents: 78
diff changeset
    12
   % 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
    13
% 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
    14
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    15
%= t div => (class => 'tabbable') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    16
  %= t ul => (class => 'nav nav-tabs', id => 'report-tabs') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    17
    %= t li => (class => 'active') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    18
      %= t a => (href => '#backtrace', 'data-toggle' => 'tab') => 'Backtrace'
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    19
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    20
    %= t li => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    21
      %= t a => (href => '#details', 'data-toggle' => 'tab') => 'Details'
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    22
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    23
    %= t li => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    24
      %= t a => (href => '#modules', 'data-toggle' => 'tab') => 'Modules'
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    25
    % end
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    26
  % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    27
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    28
  %= t div => (class => 'tab-content') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    29
    %= 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
    30
    %= include('report/backtrace', crashing_thread => $crashing_thread, threads => $threads);
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    31
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    32
    %= 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
    33
     %= 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
    34
      %= 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
    35
      %= include('report/client_info', client_info => $processed_data->{client_info});
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    36
      %= 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
    37
     % end
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    38
    % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    39
    %= t div => (class => 'tab-pane', id => 'modules') => begin
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    40
      %= include('report/modules', modules => $processed_data->{modules});
2
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    41
    % end
873ceb7769a8 Display client info
Vincent Tondellier <tonton+hg@team1664.org>
parents: 0
diff changeset
    42
  % end
0
5b78b8c79d9c Initial commit
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff changeset
    43
% end