mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-03-26 02:01:27 +01:00
Changed the HTML output to a pure single-column output.
This commit is contained in:
parent
53b0cfba37
commit
bc9503928f
3 changed files with 19 additions and 19 deletions
2
blame.py
2
blame.py
|
@ -155,7 +155,7 @@ class BlameOutput(Outputable):
|
||||||
def output_html(self):
|
def output_html(self):
|
||||||
get(self.hard)
|
get(self.hard)
|
||||||
|
|
||||||
blame_xml = "<div class=\"statistics right\"><div class=\"box\">"
|
blame_xml = "<div><div class=\"box\">"
|
||||||
blame_xml += "<p>" + __blame_info_text__ + ".</p><div><table class=\"git\">"
|
blame_xml += "<p>" + __blame_info_text__ + ".</p><div><table class=\"git\">"
|
||||||
blame_xml += "<thead><tr> <th>Author</th> <th>Rows</th> <th>% in comments</th> </tr></thead>"
|
blame_xml += "<thead><tr> <th>Author</th> <th>Rows</th> <th>% in comments</th> </tr></thead>"
|
||||||
blame_xml += "<tbody>"
|
blame_xml += "<tbody>"
|
||||||
|
|
|
@ -162,7 +162,7 @@ class ChangesOutput(Outputable):
|
||||||
def output_html(self):
|
def output_html(self):
|
||||||
authorinfo_list = get(self.hard).get_authorinfo_list()
|
authorinfo_list = get(self.hard).get_authorinfo_list()
|
||||||
total_changes = 0.0
|
total_changes = 0.0
|
||||||
changes_xml = "<div class=\"statistics right\"><div class=\"box\">"
|
changes_xml = "<div><div class=\"box\">"
|
||||||
|
|
||||||
for i in authorinfo_list:
|
for i in authorinfo_list:
|
||||||
total_changes += authorinfo_list.get(i).insertions
|
total_changes += authorinfo_list.get(i).insertions
|
||||||
|
|
|
@ -5,17 +5,21 @@
|
||||||
<script type="application/javascript">{2}</script>
|
<script type="application/javascript">{2}</script>
|
||||||
<script type="application/javascript">{3}</script>
|
<script type="application/javascript">{3}</script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
html,body {{
|
html, body {{
|
||||||
|
margin: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}}
|
|
||||||
body {{
|
|
||||||
font-family: "Arial";
|
font-family: "Arial";
|
||||||
|
}}
|
||||||
|
html, body, body > div {{
|
||||||
|
width: 50em;
|
||||||
|
}}
|
||||||
|
body > div {{
|
||||||
float: left;
|
float: left;
|
||||||
}}
|
}}
|
||||||
div.box {{
|
div.box {{
|
||||||
border: 4px solid #ddd;
|
border: 4px solid #ddd;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
margin: 1.25em;
|
margin: 0.75em;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
|
@ -23,27 +27,23 @@
|
||||||
box-shadow: 1px 1px 3px #888;
|
box-shadow: 1px 1px 3px #888;
|
||||||
-moz-box-shadow: 1px 1px 3px #888;
|
-moz-box-shadow: 1px 1px 3px #888;
|
||||||
}}
|
}}
|
||||||
div.logo {{
|
div.logo p {{
|
||||||
width: 33%;
|
margin-top: 18px;
|
||||||
float: right;
|
|
||||||
}}
|
}}
|
||||||
div.logo img {{
|
div.logo img {{
|
||||||
float: left;
|
float: left;
|
||||||
padding: 0.6em;
|
padding: 2px 10px 2px 2px;
|
||||||
}}
|
}}
|
||||||
div.statistics {{
|
body > div {{
|
||||||
float: left;
|
display: block-inline;
|
||||||
width: 50em;
|
|
||||||
}}
|
}}
|
||||||
div.statistics > div {{
|
body > div > div > div {{
|
||||||
position: relative;
|
position: relative;
|
||||||
float: left;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}}
|
}}
|
||||||
table.git {{
|
table.git {{
|
||||||
font-size: small;
|
font-size: small;
|
||||||
width: 50%;
|
width: 60%;
|
||||||
float: left;
|
|
||||||
}}
|
}}
|
||||||
table.git th, table.git tfoot tr td {{
|
table.git th, table.git tfoot tr td {{
|
||||||
padding: 0.3em;
|
padding: 0.3em;
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
border-radius: 8px 8px 0px 0px;
|
border-radius: 8px 8px 0px 0px;
|
||||||
-moz-border-radius: 8px 8px 0px 0px;
|
-moz-border-radius: 8px 8px 0px 0px;
|
||||||
}}
|
}}
|
||||||
table.git tfoot tr td{{
|
table.git tfoot tr td {{
|
||||||
border-radius: 0px 0px 8px 8px;
|
border-radius: 0px 0px 8px 8px;
|
||||||
-moz-border-radius: 0px 0px 8px 8px;
|
-moz-border-radius: 0px 0px 8px 8px;
|
||||||
}}
|
}}
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
top: 5px;
|
top: 5px;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
right: 5px;
|
right: 5px;
|
||||||
width: 50%;
|
width: 40%;
|
||||||
font-size: x-small;
|
font-size: x-small;
|
||||||
}}
|
}}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Reference in a new issue