diff options
| author | Christian Hesse <mail@eworm.de> | 2019-01-02 09:20:40 +0100 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2022-01-10 10:27:11 +0100 |
| commit | 4149c461923158c2d50ac8bd205a36e801f53fd2 (patch) | |
| tree | 67d7146026ce609a8a2df84f031a3bf9d7851083 | |
| parent | e93c8b3817e2858e268275fa4facc51529a043d9 (diff) | |
ui-tree: add about link in tree view listch/about-link
Signed-off-by: Christian Hesse <mail@eworm.de>
| -rw-r--r-- | ui-tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -252,6 +252,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); |
