Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 3 insertions, 4 deletions
-rw-r--r--ui-tree.c7
diff --git a/ui-tree.c b/ui-tree.c
index b85e8d6..27cbd46 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -236,9 +236,9 @@ static int ls_item(const struct object_id *oid, struct strbuf *base,
}
}
- html("<tr><td class='ls-mode'>");
+ html("<tr summary='");
cgit_print_filemode(mode);
- html("</td><td>");
+ html("'><td>");
if (S_ISGITLINK(mode)) {
cgit_submodule_link("ls-mod", fullpath.buf, oid_to_hex(oid));
} else if (S_ISDIR(mode)) {
@@ -309,7 +309,6 @@ static void ls_head(void)
cgit_print_layout_start();
html("<table summary='tree listing' class='list'>\n");
html("<tr class='nohover'>");
- html("<th class='left'>Mode</th>");
html("<th class='left'>Name</th>");
html("<th class='right'>Size</th>");
html("<th/>");
@@ -361,7 +360,7 @@ static int walk_tree(const struct object_id *oid, struct strbuf *base,
cgit_set_title_from_path(buffer.buf);
strbuf_release(&buffer);
ls_head();
- htmlf("<tr><td class='ls-mode'>----------</td><a href='/%s/%s/%s' class='ls-dir'>..</a></td><td class='ls-size'></td><td></td></tr>\n", ctx.qry.repo, ctx.qry.page, base->buf);
+ htmlf("<tr summary='----------'><td><a href='/%s/%s/%s' class='ls-dir'>..</a></td><td class='ls-size'></td><td></td></tr>\n", ctx.qry.repo, ctx.qry.page, base->buf);
return READ_TREE_RECURSIVE;
} else {
walk_tree_ctx->state = 2;