aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-01-02 09:20:40 +0100
committerChristian Hesse <mail@eworm.de>2021-05-12 15:34:14 +0200
commit74142048786ba47ee88418bb37dcb28867b594a7 (patch)
treeb639f76d6aca0d3edf19f8a2c8fdfffdf9afc44c
parent0b203a5cd09fb227316898ee40fa63f11e26be5b (diff)
downloadcgit-ch/about-link.tar.gz
cgit-ch/about-link.tar.zst
cgit-ch/about-link.zip
ui-tree: add about link in tree view listch/about-link
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--ui-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-tree.c b/ui-tree.c
index fd92b1d..0f933f4 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.repo->enable_blame)
cgit_blame_link("blame", NULL, "button", ctx.qry.head,
walk_tree_ctx->curr_rev, fullpath.buf);