aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-01-02 09:20:40 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2026-09-18 13:57:13 +0200
commit1d3633c83f26615dbb78c969c89ddd72905ae63d (patch)
tree250ca1e86386cc61d78c6f390c37346d68553d9b
parente562c5193332de4340076a7f1a09ecb8c28f1a7b (diff)
downloadcgit-ch/for-jason.tar.gz
cgit-ch/for-jason.tar.bz2
cgit-ch/for-jason.zip
ui-tree: add about link in tree view listch/for-jason
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);