aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--cgit.css6
-rw-r--r--ui-commit.c6
2 files changed, 2 insertions, 10 deletions
diff --git a/cgit.css b/cgit.css
index 5cf8d15..87fd00a 100644
--- a/cgit.css
+++ b/cgit.css
@@ -236,13 +236,9 @@ div.commit-msg {
font-family: monospace;
}
-div.diffstat-header {
- font-weight: bold;
- padding-top: 1.5em;
-}
-
table.diffstat {
border-collapse: collapse;
+ margin-top: 1.5em;
width: 100%;
border: solid 1px #aaa;
background-color: #eee;
diff --git a/ui-commit.c b/ui-commit.c
index ff1fad3..93eb8fd 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -221,7 +221,6 @@ void cgit_print_commit(const char *hex)
html_txt(info->msg);
html("</div>");
if (!(commit->parents && commit->parents->next && commit->parents->next->next)) {
- html("<div class='diffstat-header'>Diffstat</div>");
html("<table class='diffstat'>");
max_changes = 0;
cgit_diff_commit(commit, inspect_filepair);
@@ -229,11 +228,8 @@ void cgit_print_commit(const char *hex)
print_fileinfo(&items[i]);
html("</table>");
html("<div class='diffstat-summary'>");
- htmlf("%d files changed, %d insertions, %d deletions (",
+ htmlf("%d files changed, %d insertions, %d deletions\n",
files, total_adds, total_rems);
- query = fmt("h=%s", hex);
- html_link_open(cgit_pageurl(cgit_query_repo, "diff", query), NULL, NULL);
- html("show diff</a>)");
html("</div>");
}
cgit_free_commitinfo(info);