summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-01-07 21:33:25 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2016-01-07 21:33:25 +0100
commit9fe7ec66f8d871ca86300ad80176f267afa940bd (patch)
tree18fb7b380ecfddd34d209341b79121074dc7c304 /template/en/default/reports
parent76fd2f8984309af7331c470d9340e03dcadae56f (diff)
downloadbugzilla-9fe7ec66f8d871ca86300ad80176f267afa940bd.tar.gz
bugzilla-9fe7ec66f8d871ca86300ad80176f267afa940bd.tar.xz
Bug 1232716: Tabular reports with no column selected are not sortable
r=dkl
Diffstat (limited to 'template/en/default/reports')
-rw-r--r--template/en/default/reports/report-table.html.tmpl15
1 files changed, 9 insertions, 6 deletions
diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl
index 03f3147df..9027efa73 100644
--- a/template/en/default/reports/report-table.html.tmpl
+++ b/template/en/default/reports/report-table.html.tmpl
@@ -37,18 +37,21 @@
[% 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>&darr;&nbsp;[% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %]&nbsp;&rarr;</th>
+ <th>
+ [% IF col_field %]
+ &darr;&nbsp;[% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %]&nbsp;&rarr;
+ [% 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>