This link is a lot easier to locate than the links to the right of the
parent entries.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
font-family: monospace;
}
font-family: monospace;
}
+div.diffstat-header {
+ font-weight: bold;
+ padding-top: 1.5em;
+}
+
table.diffstat {
border-collapse: collapse;
table.diffstat {
border-collapse: collapse;
width: 100%;
border: solid 1px #aaa;
background-color: #eee;
width: 100%;
border: solid 1px #aaa;
background-color: #eee;
html_txt(info->msg);
html("</div>");
if (!(commit->parents && commit->parents->next && commit->parents->next->next)) {
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);
html("<table class='diffstat'>");
max_changes = 0;
cgit_diff_commit(commit, inspect_filepair);
print_fileinfo(&items[i]);
html("</table>");
html("<div class='diffstat-summary'>");
print_fileinfo(&items[i]);
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);
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);
html("</div>");
}
cgit_free_commitinfo(info);