mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
Hovering (in HTML output) is now done with CSS instead of javascript.
This commit is contained in:
parent
72975d548c
commit
c6771c0b9f
3 changed files with 4 additions and 12 deletions
2
blame.py
2
blame.py
|
@ -162,7 +162,7 @@ class BlameOutput(Outputable):
|
|||
get(self.hard)
|
||||
|
||||
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 id=\"blame\" class=\"git\">"
|
||||
blame_xml += "<thead><tr> <th>Author</th> <th>Rows</th> <th>% in comments</th> </tr></thead>"
|
||||
blame_xml += "<tbody>"
|
||||
chart_data = ""
|
||||
|
|
|
@ -181,7 +181,7 @@ class ChangesOutput(Outputable):
|
|||
total_changes += authorinfo_list.get(i).deletions
|
||||
|
||||
if authorinfo_list:
|
||||
changes_xml += "<p>" + __historical_info_text__ + ".</p><div><table class=\"git\">"
|
||||
changes_xml += "<p>" + __historical_info_text__ + ".</p><div><table id=\"changes\" class=\"git\">"
|
||||
changes_xml += ("<thead><tr> <th>Author</th> <th>Commits</th> <th>Insertions</th> <th>Deletions</th>" +
|
||||
"<th>% of changes</th> </tr></thead>")
|
||||
changes_xml += "<tbody>"
|
||||
|
|
|
@ -39,10 +39,6 @@
|
|||
return $(this).parent().parent().parent().find("tbody tr:hidden").length > 0;
|
||||
}}).each(function() {{
|
||||
this.innerHTML = "Show minor authors ∨";
|
||||
}}).hover(function() {{
|
||||
$(this).addClass("hover");
|
||||
}}, function() {{
|
||||
$(this).removeClass("hover");
|
||||
}}).toggle(function() {{
|
||||
this.innerHTML = "Hide minor authors ∧";
|
||||
$(this).parent().parent().parent().find("tbody tr").show().each(colorRows);
|
||||
|
@ -60,11 +56,7 @@
|
|||
$("div#timeline table.git tbody tr:visible").each(colorRows);
|
||||
$("div#timeline").prepend("<div class=\"button\">Show rows with minor work ∨</div>");
|
||||
|
||||
$("div#timeline div.button").hover(function() {{
|
||||
$(this).addClass("hover");
|
||||
}}, function() {{
|
||||
$(this).removeClass("hover");
|
||||
}}).toggle(function() {{
|
||||
$("div#timeline div.button").toggle(function() {{
|
||||
this.innerHTML = "Hide rows with minor work ∧"
|
||||
$("div#timeline table.git tbody tr").show().each(colorRows);
|
||||
}}, function() {{
|
||||
|
@ -174,7 +166,7 @@
|
|||
background-color: #ddcece;
|
||||
min-height: 0;
|
||||
}}
|
||||
table.git tfoot tr td.hover, div.hover {{
|
||||
table#changes tfoot tr td:hover, table#blame tfoot tr td:hover, div.button:hover {{
|
||||
background-color: #eddede;
|
||||
border: 1px solid #bbb;
|
||||
cursor: hand;
|
||||
|
|
Loading…
Reference in a new issue