aboutsummaryrefslogtreecommitdiffstats
path: root/ui-commit.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-11-11 13:17:13 +0100
committerLars Hjemli <hjemli@gmail.com>2007-11-11 13:17:13 +0100
commita7cf406c802394460cb14c79f3f43582d1428a45 (patch)
tree71f3069c782698ae2972459258d551055f502c4f /ui-commit.c
parentab21082c21867e035cd925a06d6d55fb3143d883 (diff)
parent2ff33a8a0405b420cd75e0e207c7efeecd6f130b (diff)
downloadcgit-a7cf406c802394460cb14c79f3f43582d1428a45.tar.gz
cgit-a7cf406c802394460cb14c79f3f43582d1428a45.tar.xz
Merge branch 'lh/testsuite'
* lh/testsuite: Set commit date on snapshot contents Fix html error detected by test-suite Create initial testsuite
Diffstat (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-commit.c b/ui-commit.c
index 4ac8955..bd55a33 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -84,7 +84,7 @@ void print_fileinfo(struct fileinfo *info)
html("</td><td class='right'>");
htmlf("%d", info->added + info->removed);
html("</td><td class='graph'>");
- htmlf("<table width='%d%%'><tr>", (max_changes > 100 ? 100 : max_changes));
+ 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%%;'/>",
@@ -157,7 +157,7 @@ void cgit_print_commit(char *hex)
}
info = cgit_parse_commit(commit);
- html("<table class='commit-info'>\n");
+ html("<table summary='commit info' class='commit-info'>\n");
html("<tr><th>author</th><td>");
html_txt(info->author);
html(" ");
@@ -209,7 +209,7 @@ void cgit_print_commit(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'>");
+ html("<table summary='diffstat' class='diffstat'>");
max_changes = 0;
cgit_diff_commit(commit, inspect_filepair);
for(i = 0; i<files; i++)