ui-tree: add about link in tree view list Signed-off-by: Christian Hesse <mail@eworm.de>
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 @@ 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);