Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-01-02 11:20:40 +0300
committerChristian Hesse <mail@eworm.de>2024-08-17 00:29:06 +0300
commit20395164f634c261781a6acc18019dca8973e119 (patch)
tree7968cd0f6768cfd7cb5bb3bcce7d644d457f0724
parent45771f24a93437ed76ce6c203793f44f47a4be18 (diff)
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 45ab4e2..26f19be 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);