Display client info
authorVincent Tondellier <tonton+hg@team1664.org>
Wed, 02 May 2012 21:43:53 +0200
changeset 2 873ceb7769a8
parent 1 c3726f733704
child 3 2ff78fe4abda
Display client info
templates/report/client_info.html.ep
templates/report/crash.html.ep
templates/report/system_info.html.ep
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/report/client_info.html.ep	Wed May 02 21:43:53 2012 +0200
@@ -0,0 +1,24 @@
+<tr>
+  %= t td => 'Product'
+  %= t td => $client_info->{ProductName}
+</tr>
+<tr>
+  %= t td => 'Distributor'
+  %= t td => $client_info->{Distributor}
+</tr>
+<tr>
+  %= t td => 'Version'
+  %= t td => $client_info->{Version}
+</tr>
+<tr>
+  %= t td => 'BuildID'
+  %= t td => $client_info->{BuildID}
+</tr>
+<tr>
+  %= t td => 'Release Channel'
+  %= t td => $client_info->{ReleaseChannel}
+</tr>
+<tr>
+  %= t td => 'UUID'
+  %= t td => $self->param('uuid');
+</tr>
--- a/templates/report/crash.html.ep	Wed May 02 01:41:29 2012 +0200
+++ b/templates/report/crash.html.ep	Wed May 02 21:43:53 2012 +0200
@@ -5,24 +5,27 @@
   %= t ul => (class => 'nav nav-tabs', id => 'report-tabs') => begin
     %= t li => (class => 'active') => begin
       %= t a => (href => '#backtrace', 'data-toggle' => 'tab') => 'Backtrace'
-    % end 
+    % end
     %= t li => begin
       %= t a => (href => '#details', 'data-toggle' => 'tab') => 'Details'
-    % end 
+    % end
     %= t li => begin
       %= t a => (href => '#modules', 'data-toggle' => 'tab') => 'Modules'
-    % end 
-  % end 
+    % end
+  % end
 
   %= t div => (class => 'tab-content') => begin
     %= t div => (class => 'tab-pane active', id => 'backtrace') => begin
     %= include('report/backtrace', crashing_thread => $processed_data->{crashing_thread}, threads => $processed_data->{threads});
-    % end 
+    % end
     %= t div => (class => 'tab-pane', id => 'details') => begin
+     %= t table => (class => 'table table-striped table-bordered table-condensed') => begin
+      %= include('report/client_info', client_info => $processed_data->{client_info});
       %= include('report/system_info', system_info => $processed_data->{system_info});
-    % end 
+     % end
+    % end
     %= t div => (class => 'tab-pane', id => 'modules') => begin
       %= include('report/modules', modules => $processed_data->{modules});
-    % end 
-  % end 
+    % end
+  % end
 % end
--- a/templates/report/system_info.html.ep	Wed May 02 01:41:29 2012 +0200
+++ b/templates/report/system_info.html.ep	Wed May 02 21:43:53 2012 +0200
@@ -1,4 +1,3 @@
-%= t table => (class => 'table table-striped table-bordered table-condensed') => begin
 <tr>
   %= t td => 'Build Architecture'
   %= t td => $system_info->{cpu_arch}
@@ -15,4 +14,3 @@
   %= t td => 'OS Version'
   %= t td => $system_info->{os_ver}
 </tr>
-% end