Invert list and stats to avoid bug with pagination
authorVincent Tondellier <tonton+hg@team1664.org>
Mon, 15 Feb 2016 00:04:51 +0100
changeset 105 d7258a3a926c
parent 104 b75005d8b002
child 106 97bf7ebb6e44
Invert list and stats to avoid bug with pagination
templates/group/show.html.ep
--- a/templates/group/show.html.ep	Sun Feb 14 23:56:24 2016 +0100
+++ b/templates/group/show.html.ep	Mon Feb 15 00:04:51 2016 +0100
@@ -5,19 +5,19 @@
 %= t div => (class => 'tabbable') => begin
   %= t ul => (class => 'nav nav-tabs', id => 'report-tabs') => begin
     %= t li => (class => 'active') => begin
-      %= t a => (href => '#stats', 'data-toggle' => 'tab') => 'Statistics'
+      %= t a => (href => '#reports', 'data-toggle' => 'tab') => 'Reports'
     % end
     %= t li => begin
-      %= t a => (href => '#reports', 'data-toggle' => 'tab') => 'Reports'
+      %= t a => (href => '#stats', 'data-toggle' => 'tab') => 'Statistics'
     % end
   % end
 
   %= t div => (class => 'tab-content') => begin
-    %= t div => (class => 'tab-pane active', id => 'stats') => begin
-      %= include('group/_stats', stats_by_product_and_version => $stats_by_product_and_version);
+    %= t div => (class => 'tab-pane active', id => 'reports') => begin
+      %= include('reports/_list', crashs => $crashs, extra_columns => $extra_columns, pager => $pager);
     % end
-    %= t div => (class => 'tab-pane', id => 'reports') => begin
-      %= include('reports/_list', crashs => $crashs, extra_columns => $extra_columns, pager => $pager);
+    %= t div => (class => 'tab-pane', id => 'stats') => begin
+      %= include('group/_stats', stats_by_product_and_version => $stats_by_product_and_version);
     % end
   % end
 % end