diff --git a/py-scripts/artifacts/report.css b/py-scripts/artifacts/report.css index 5c3c9280..311f55ac 100644 --- a/py-scripts/artifacts/report.css +++ b/py-scripts/artifacts/report.css @@ -187,6 +187,20 @@ li { max-width: 1000px; max-height: 205px; } + +#BannerLeft { + background-image:url("banner.png"); + background-repeat:no-repeat; + padding: 0; + margin: 1em; + min-width: 1000px; + min-height: 205px; + width: 1000px; + height: 205px; + max-width: 1000px; + max-height: 205px; +} + #BannerLogo { text-align: right; padding: 25px; diff --git a/py-scripts/lf_report.py b/py-scripts/lf_report.py index 962ac176..04d2ae8a 100755 --- a/py-scripts/lf_report.py +++ b/py-scripts/lf_report.py @@ -329,6 +329,39 @@ class lf_report(): ) self.html += self.banner_html + def build_banner_left(self): + # NOTE: {{ }} are the ESCAPED curly braces + self.banner_html = """ + + + + + + + + {title} + + +
+
+
+ +
+
+

{title}

+

{date}

+
+
+
+ """.format( + title=self.title, + date=self.date, + ) + self.html += self.banner_html + + def build_table_title(self): self.table_title_html = """ diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index 40ea090c..198e55f9 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -1140,7 +1140,7 @@ Example : # generate output reports report.set_title("LF Check: lf_check.py") - report.build_banner() + report.build_banner_left() report.start_content_div2() report.set_table_title("LF Check Test Results") report.build_table_title() @@ -1149,7 +1149,7 @@ Example : html_results = check.get_html_results() report.set_custom_html(html_results) report.build_custom() - report.build_footer_no_png() + report.build_footer() html_report = report.write_html_with_timestamp() print("html report: {}".format(html_report)) try: