From 3e8d6434e8f5c24d08550c782ca2999c30ffc770 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Sat, 17 Nov 2012 02:58:56 +0100 Subject: [PATCH] Perfected the look of the HTML output from the blame module. This output is a good start and should work fine as a first template that can be used when implementing HTML output in all other modules. Once this is done we can work on adding some interactivity. However; it might be a good idea to just release a version with some simple HTML output before adding more complex stuff. --- blame.py | 8 ++++---- html/html.header | 42 +++++++++++++++++++++++++++++------------- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/blame.py b/blame.py index 23231fe..53b8297 100644 --- a/blame.py +++ b/blame.py @@ -149,8 +149,8 @@ __blame_info_text__ = ("Below are the number of rows from each author that have def output_html(hard): get(hard) - message_xml = "

" + __blame_info_text__ + ".

\n" - blame_xml = "
" + blame_xml = "
" + blame_xml += "

" + __blame_info_text__ + ".

" blame_xml += "" blame_xml += "" chart_data = "" @@ -172,7 +172,7 @@ def output_html(hard): chart_data += ", " blame_xml += "
Author Rows % in comments
     
" - blame_xml += "
" + blame_xml += "
" blame_xml += "" - print(message_xml + blame_xml) + print(blame_xml) def output_text(hard): print("") diff --git a/html/html.header b/html/html.header index c97c0cb..b49456f 100644 --- a/html/html.header +++ b/html/html.header @@ -5,33 +5,47 @@ -