diff options
| author | Christian Hesse <mail@eworm.de> | 2019-01-02 09:20:40 +0100 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2026-11-10 20:16:57 +0100 |
| commit | c05ad21bb9d73c0243cc1031328321cd5ff1b42f (patch) | |
| tree | 1c2fc48a748f6b149c46b980e94861d1c4bca47e /ui-tree.c | |
| parent | ab071d20e7d8767ffca8f20795c7907ed1eaa5f9 (diff) | |
| download | cgit-c05ad21bb9d73c0243cc1031328321cd5ff1b42f.tar.gz cgit-c05ad21bb9d73c0243cc1031328321cd5ff1b42f.tar.bz2 cgit-c05ad21bb9d73c0243cc1031328321cd5ff1b42f.zip | |
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); |
