aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-01-02 08:20:40 +0000
committerChristian Hesse <mail@eworm.de>2022-12-19 16:58:31 +0000
commit0c5c027d88a0b4086a0d4cb5e1cbba205085485a (patch)
tree5502a2ca5b55a8e02412934a246814181f0f42d3
parent25a7920e30cade15f831c95e64a01b9d897a8cea (diff)
downloadcgit-0c5c027d88a0b4086a0d4cb5e1cbba205085485a.tar
cgit-0c5c027d88a0b4086a0d4cb5e1cbba205085485a.tar.gz
cgit-0c5c027d88a0b4086a0d4cb5e1cbba205085485a.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 5d7b257..635a2a4 100644
--- 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);