mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 16:38:42 +00:00
ui-tree: add about link in tree view list
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
4af65d60c6
commit
839fb8442b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user