-rw-r--r-- | ui-commit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui-commit.c b/ui-commit.c index 93eb8fd..ff1fad3 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -222,4 +222,5 @@ void cgit_print_commit(const char *hex) 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; @@ -229,6 +230,9 @@ void cgit_print_commit(const char *hex) html("</table>"); html("<div class='diffstat-summary'>"); - htmlf("%d files changed, %d insertions, %d deletions\n", + htmlf("%d files changed, %d insertions, %d deletions (", 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>"); } |