mirror of
https://github.com/ejwa/gitinspector.git
synced 2025-03-23 08:47:58 +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):
|
||||
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 += "<thead><tr> <th>Author</th> <th>Rows</th> <th>% in comments</th> </tr></thead>"
|
||||
blame_xml += "<tbody>"
|
||||
|
|
|
@ -162,7 +162,7 @@ class ChangesOutput(Outputable):
|
|||
def output_html(self):
|
||||
authorinfo_list = get(self.hard).get_authorinfo_list()
|
||||
total_changes = 0.0
|
||||
changes_xml = "<div class=\"statistics right\"><div class=\"box\">"
|
||||
changes_xml = "<div><div class=\"box\">"
|
||||
|
||||
for i in authorinfo_list:
|
||||
total_changes += authorinfo_list.get(i).insertions
|
||||
|
|
|
@ -5,17 +5,21 @@
|
|||
<script type="application/javascript">{2}</script>
|
||||
<script type="application/javascript">{3}</script>
|
||||
<style type="text/css">
|
||||
html,body {{
|
||||
html, body {{
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}}
|
||||
body {{
|
||||
font-family: "Arial";
|
||||
}}
|
||||
html, body, body > div {{
|
||||
width: 50em;
|
||||
}}
|
||||
body > div {{
|
||||
float: left;
|
||||
}}
|
||||
div.box {{
|
||||
border: 4px solid #ddd;
|
||||
background-color: #eee;
|
||||
margin: 1.25em;
|
||||
margin: 0.75em;
|
||||
padding: 5px;
|
||||
font-size: small;
|
||||
border-radius: 15px;
|
||||
|
@ -23,27 +27,23 @@
|
|||
box-shadow: 1px 1px 3px #888;
|
||||
-moz-box-shadow: 1px 1px 3px #888;
|
||||
}}
|
||||
div.logo {{
|
||||
width: 33%;
|
||||
float: right;
|
||||
div.logo p {{
|
||||
margin-top: 18px;
|
||||
}}
|
||||
div.logo img {{
|
||||
float: left;
|
||||
padding: 0.6em;
|
||||
padding: 2px 10px 2px 2px;
|
||||
}}
|
||||
div.statistics {{
|
||||
float: left;
|
||||
width: 50em;
|
||||
body > div {{
|
||||
display: block-inline;
|
||||
}}
|
||||
div.statistics > div {{
|
||||
body > div > div > div {{
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}}
|
||||
table.git {{
|
||||
font-size: small;
|
||||
width: 50%;
|
||||
float: left;
|
||||
width: 60%;
|
||||
}}
|
||||
table.git th, table.git tfoot tr td {{
|
||||
padding: 0.3em;
|
||||
|
@ -51,7 +51,7 @@
|
|||
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;
|
||||
-moz-border-radius: 0px 0px 8px 8px;
|
||||
}}
|
||||
|
@ -66,7 +66,7 @@
|
|||
top: 5px;
|
||||
bottom: 5px;
|
||||
right: 5px;
|
||||
width: 50%;
|
||||
width: 40%;
|
||||
font-size: x-small;
|
||||
}}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Reference in a new issue