aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-01-02 09:20:40 +0100
committerChristian Hesse <mail@eworm.de>2026-09-28 21:57:07 +0200
commit176bf5b9f0b89fa2f5b3fd7dc75487c004510dfe (patch)
tree0f3b908074379c23b242eec5906687b0db2df907
parent3dc000a93ec4de236d0a2397c6139efa53d1ec0a (diff)
downloadcgit-176bf5b9f0b89fa2f5b3fd7dc75487c004510dfe.tar.gz
cgit-176bf5b9f0b89fa2f5b3fd7dc75487c004510dfe.tar.bz2
cgit-176bf5b9f0b89fa2f5b3fd7dc75487c004510dfe.zip
ui-tree: add about link in tree view list
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 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);