diff options
author | Christian Hesse <mail@eworm.de> | 2019-01-02 09:20:40 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-11-25 10:05:37 +0100 |
commit | bcc708c9789efe5d5a7f08ca41244cade989a42b (patch) | |
tree | 4c0c59cdb51c4083f494079b9950b79bf855e02f /ui-tree.c | |
parent | 6cdc4903f0902e5b14c7b84b2f3c213e2c68c4c2 (diff) | |
download | cgit-bcc708c9789efe5d5a7f08ca41244cade989a42b.tar.gz cgit-bcc708c9789efe5d5a7f08ca41244cade989a42b.tar.xz |
ui-tree: add about link in tree view list
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-tree.c')
-rw-r--r-- | ui-tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |