From 100907745cbcbb880107cb6a1bbd0395d14093c8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 7 Jul 2008 13:23:51 +0000 Subject: [PATCH] ReportGenerator: Spaltentitel in der HTML-Ausgabe ausrichtbar gemacht (Attribut "align"). --- SL/ReportGenerator.pm | 3 +++ templates/webpages/report_generator/html_report_de.html | 2 +- templates/webpages/report_generator/html_report_master.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SL/ReportGenerator.pm b/SL/ReportGenerator.pm index f5550a62d..308961cb5 100644 --- a/SL/ReportGenerator.pm +++ b/SL/ReportGenerator.pm @@ -271,6 +271,7 @@ sub prepare_html_content { my $header = { 'name' => $name, + 'align' => $column->{align}, 'link' => $column->{link}, 'text' => $column->{text}, 'show_sort_indicator' => $name eq $opts->{sort_indicator_column}, @@ -398,6 +399,8 @@ sub generate_html_content { my $self = shift; my $variables = $self->prepare_html_content(); + $main::lxdebug->dump(0, "VARs", $variables->{HEADER_ROWS}); + return $self->{form}->parse_html_template($self->{options}->{html_template}, $variables); } diff --git a/templates/webpages/report_generator/html_report_de.html b/templates/webpages/report_generator/html_report_de.html index 0be715f09..455a5f203 100644 --- a/templates/webpages/report_generator/html_report_de.html +++ b/templates/webpages/report_generator/html_report_de.html @@ -42,7 +42,7 @@ [% FOREACH col = row %] 1 %] colspan="[% HTML.escape(col.colspan) %]"[% END -%] > [%- IF col.link -%][%- END -%] diff --git a/templates/webpages/report_generator/html_report_master.html b/templates/webpages/report_generator/html_report_master.html index b8d83d2a5..59101774a 100644 --- a/templates/webpages/report_generator/html_report_master.html +++ b/templates/webpages/report_generator/html_report_master.html @@ -42,7 +42,7 @@ [% FOREACH col = row %] 1 %] colspan="[% HTML.escape(col.colspan) %]"[% END -%] > [%- IF col.link -%][%- END -%] -- 2.20.1