]> granicus.if.org Git - cgit/commitdiff
ui-tree: add about link in tree view list ch/about-link
authorChristian Hesse <mail@eworm.de>
Wed, 2 Jan 2019 08:20:40 +0000 (09:20 +0100)
committerChristian Hesse <mail@eworm.de>
Mon, 19 Dec 2022 16:58:31 +0000 (17:58 +0100)
Signed-off-by: Christian Hesse <mail@eworm.de>
ui-tree.c

index 5d7b257e95b6c3108d011d93bc47c562682e164d..635a2a45e184875c89fbc641cb96c65e5ca4941c 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -270,6 +270,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.repo->enable_blame)
                cgit_blame_link("blame", NULL, "button", ctx.qry.head,
                                walk_tree_ctx->curr_rev, fullpath.buf);