From 369290fc2531c81b135a03ba57131f7dcc960176 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Sat, 17 Nov 2012 00:33:47 +0100 Subject: [PATCH] Extended the HTML header with some initial CSS. The pie-chart plugin script was also added to the head of the document. --- format.py | 3 ++- html/html.header | 59 +++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/format.py b/format.py index 3d6ade0..a64675a 100644 --- a/format.py +++ b/format.py @@ -58,13 +58,14 @@ def output_header(): html_header = __output_html_template__(base + "/html/html.header") jquery_js = __get_zip_file_content__("jquery.js") flot_js = __get_zip_file_content__("jquery.flot.js") + pie_js = __get_zip_file_content__("jquery.flot.pie.js") logo_file = open(base + "/html/gitinspector_piclet.png", "rb") logo = logo_file.read() logo_file.close() logo = base64.b64encode(logo) - print(html_header.format(version.__version__, jquery_js, flot_js, logo)) + print(html_header.format(version.__version__, jquery_js, flot_js, pie_js, logo)) elif __selected_format__ == "xml": print("") diff --git a/html/html.header b/html/html.header index 38458b8..c97c0cb 100644 --- a/html/html.header +++ b/html/html.header @@ -3,8 +3,61 @@ Generated by gitinspector {0}. + + - -

The output below has been generated by gitinspector; - the statistical analysis tool for git repositories.

+