diff options
| Commit | cbda640eefaeabdcd531a215a4b4a04fc8e52c48 (patch) | |
|---|---|---|
| Author | 2026-09-27 22:04:58 +0300 | |
| Committer | 2026-09-27 22:16:58 +0300 | |
| Files | 5efb448b8dcbdb49f70075288fcd63480a6fd910 | |
| cgit-cbda640eefaeabdcd531a215a4b4a04fc8e52c48.tar cgit-cbda640eefaeabdcd531a215a4b4a04fc8e52c48.tar.gz cgit-cbda640eefaeabdcd531a215a4b4a04fc8e52c48.zip | ||
| Parent | 767e263512911e24f825eb14be87fc3b9055c4ab (diff) | |
ui-tree: Remove file mode column
1 files changed, 3 insertions, 4 deletions
| -rw-r--r-- | ui-tree.c | 7 |
@@ -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; |
