Report improvements.
Ylian Saint-Hilaire committed
Sep 9, 2021 at 11:47 UTC
884fc7496d5b66ed02953d315359a0a809507340
1 file changed
+5
-5
views/default.handlebars
+5
-5
@@ -14972,14 +14972,14 @@
14972
for (var i in r.columns) {
14973
var coltitle;
14974
if (colTranslation[r.columns[i].title] != null) { coltitle = colTranslation[r.columns[i].title]; } else { coltitle = EscapeHtml(r.columns[i].title); }
14975
- if ((i == 0) && ((r.columns[i].format == 'datetime') || (r.columns[i].format == 'time'))) {
14976
- x += '<th style=width:1%>' + coltitle + '</th>';
14977
- } else {
14978
- x += '<th>' + coltitle + '</th>';
14979
- }
14975
+ var style = '';
14976
+ if (r.columns[i].align) { style += ';text-align:' + EscapeHtml(r.columns[i].align); } else { style += ';text-align:left'; }
14977
+ if ((i == 0) && ((r.columns[i].format == 'datetime') || (r.columns[i].format == 'time'))) { style += ';width:1%'; }
14978
+ x += '<th style=' + style + '>' + coltitle + '</th>';
14979
}
14980
x += '</tr>'
14981
for (var i in r.groups) {
14982
+ x += '<tr style=height:8px></tr>'
14983
x += '<tr><td colspan=' + r.columns.length + ' style="border-bottom:1pt solid black"><b>'
14984
x += renderReportFormat(i, r.groupFormat);
14985
x += '</b></td></tr>'