aboutsummaryrefslogtreecommitdiffstats
path: root/ui-diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-diff.c')
-rw-r--r--ui-diff.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui-diff.c b/ui-diff.c
index 5ed5990..88502ba 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -113,13 +113,13 @@ static void print_fileinfo(struct fileinfo *info)
}
htmlf("%d", info->added + info->removed);
html("</td><td class='graph'>");
- htmlf("<table summary='file diffstat' width='%d%%'><tr>", (max_changes > 100 ? 100 : max_changes));
- htmlf("<td class='add' style='width: %.1f%%;'/>",
- info->added * 100.0 / max_changes);
- htmlf("<td class='rem' style='width: %.1f%%;'/>",
- info->removed * 100.0 / max_changes);
- htmlf("<td class='none' style='width: %.1f%%;'/>",
- (max_changes - info->removed - info->added) * 100.0 / max_changes);
+ html("<table summary='file diffstat'><tr>");
+ htmlf("<td class='add'>+%d</td>",
+ info->added /* * 100.0 / max_changes */);
+ htmlf("<td class='rem'>-%d</td>",
+ info->removed/* * 100.0 / max_changes */);
+/* htmlf("<td class='none' style='width: %.1f%%;'/>",
+ (max_changes - info->removed - info->added) * 100.0 / max_changes);*/
html("</tr></table></td></tr>\n");
}
@@ -466,7 +466,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev,
if (show_ctrls) {
cgit_print_layout_start();
- cgit_print_diff_ctrls();
+ /* cgit_print_diff_ctrls();*/
}
/*