Commit 0c5c027d88a0b4086a0d4cb5e1cbba205085485a

Parents: 25a7920e30cade15f831c95e64a01b9d897a8cea

From: Christian Hesse <mail@eworm.de>
Date: Wed Jan 2 09:20:40 2019 +0700

ui-tree: add about link in tree view list
Signed-off-by: Christian Hesse <mail@eworm.de>

Stats

ui-tree.c +3/-0

Changeset

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
diff --git a/ui-tree.c b/ui-tree.c
index 5d7b257e95b6c3108d011d93bc47c562682e164d..635a2a45e184875c89fbc641cb96c65e5ca4941c 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -270,6 +270,9 @@ 				fullpath.buf);
 	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);