diff options
| author | Christian Hesse <mail@eworm.de> | 2019-01-02 09:20:40 +0100 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2026-09-29 09:51:03 +0200 |
| commit | d25b2b0bf55075f7d135b5d03736b302ecf9e4f7 (patch) | |
| tree | db1543a9cb33017989741ae062163c087a10fe8f | |
| parent | 8417286043559c4b5887f82f9db01c59967dd6a2 (diff) | |
| download | cgit-d25b2b0bf55075f7d135b5d03736b302ecf9e4f7.tar.gz cgit-d25b2b0bf55075f7d135b5d03736b302ecf9e4f7.tar.bz2 cgit-d25b2b0bf55075f7d135b5d03736b302ecf9e4f7.zip | |
ui-tree: add about link in tree view list
Signed-off-by: Christian Hesse <mail@eworm.de>
| -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); |
