aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tree.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-01-02 09:20:40 +0100
committerChristian Hesse <mail@eworm.de>2026-04-20 21:54:37 +0200
commit7999aad8c2e449d4fbfea6571640350e967e57e7 (patch)
treebe9fd7ec5165df3da5246e7fd316fb83317124cd /ui-tree.c
parent1a53ee648962d6e2ea4ef28d18a0e354ff006546 (diff)
downloadcgit-7999aad8c2e449d4fbfea6571640350e967e57e7.tar.gz
cgit-7999aad8c2e449d4fbfea6571640350e967e57e7.tar.bz2
cgit-7999aad8c2e449d4fbfea6571640350e967e57e7.zip
ui-tree: add about link in tree view list
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 851074e..542c523 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -272,6 +272,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);