diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Give an empty repository's clone table its hooks
It was a bare table.list with no name, section or label, the one listing that broke what the README promises a theme.
Diffstat (limited to 'source/ui-empty.c')
-rw-r--r--source/ui-empty.c6
1 file changed, 3 insertions, 3 deletions
diff --git a/source/ui-empty.c b/source/ui-empty.c
index 30887c5..deefc21 100644
--- a/source/ui-empty.c
+++ b/source/ui-empty.c
@@ -29,8 +29,8 @@ void cgit_print_empty_repo(void)
if (!ctx.repo->clone_url && !ctx.cfg.clone_prefix)
return;
- html("<table class='list'>\n");
- html("<tr class='nohover'><th class='left'>Clone</th></tr>\n");
+ html("<table class='list clone' aria-label='Clone urls'>\n<tbody class='clone'>\n");
+ html("<tr class='nohover'><th class='left' scope='col'>Clone</th></tr>\n");
cgit_add_clone_urls(print_clone_url);
- html("</table>\n");
+ html("</tbody>\n</table>\n");
}