From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Wed, 2 Jan 2019 09:22:20 +0100 Subject: [PATCH 1/1] ui-tree: add about link in tree view list In-Reply-To: <20181228231534.15570-1-list@eworm.de> References: <20181228231534.15570-1-list@eworm.de> Message-ID: <20190102082220.770-1-list@eworm.de> From: Christian Hesse Signed-off-by: Christian Hesse --- ui-tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui-tree.c b/ui-tree.c index 7b45da6..8b12e7c 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -254,6 +254,9 @@ static int ls_item(const struct object_id *oid, struct strbuf *base, if (!S_ISGITLINK(mode)) cgit_plain_link("plain", NULL, "button", ctx.qry.head, walk_tree_ctx->curr_rev, fullpath.buf); + if (!S_ISDIR(mode)) + cgit_about_link("about", NULL, "button", ctx.qry.head, + walk_tree_ctx->curr_rev, fullpath.buf); if (!S_ISDIR(mode) && ctx.cfg.enable_blame) cgit_blame_link("blame", NULL, "button", ctx.qry.head, walk_tree_ctx->curr_rev, fullpath.buf);