[% total_key = '-total-' %]
[%# Most of these classes are defined in the DataTables plugin itself. %]
<table id="tabular_report_[% table_id FILTER html %]" class="tabular_report display cell-border compact">
- [% IF col_field %]
- <thead>
+ <thead>
<tr>
- <th>↓ [% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %] →</th>
+ <th>
+ [% IF col_field %]
+ ↓ [% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %] →
+ [% ELSE %]
+ [% row_field_disp FILTER html %]
+ [% END %]
+ </th>
[% FOREACH col = col_names %]
- [% NEXT IF col == "" %]
<th>[% PROCESS value_display value = col field = col_field %]</th>
[% END %]
<th class="ttotal">Total</th>
</tr>
- </thead>
- [% END %]
+ </thead>
<tbody>
[% FOREACH row = row_names %]
<tr>