From cbda640eefaeabdcd531a215a4b4a04fc8e52c48 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 27 Sep 2026 22:04:58 +0300 Subject: ui-tree: Remove file mode column --- ui-tree.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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(""); + html(""); 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("\n"); html(""); - html(""); html(""); html(""); html("..\n", ctx.qry.repo, ctx.qry.page, base->buf); + htmlf("\n", ctx.qry.repo, ctx.qry.page, base->buf); return READ_TREE_RECURSIVE; } else { walk_tree_ctx->state = 2; -- cgit v1.3.1-23-gd82d
ModeNameSize"); @@ -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("
----------
..