diff options
| author | Christian Hesse <mail@eworm.de> | 2019-01-02 09:20:40 +0100 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2025-11-17 21:40:58 +0100 |
| commit | 6f08e89a88f1f09f9eb7b45aa99d4abcc9040ab9 (patch) | |
| tree | 13a7b66457856ce4e190c5515b40f1f17c7d9d7a /ui-tree.c | |
| parent | cb2bad0566ddf90954997d867fdc5be9f78006cf (diff) | |
| download | cgit-6f08e89a88f1f09f9eb7b45aa99d4abcc9040ab9.tar.gz cgit-6f08e89a88f1f09f9eb7b45aa99d4abcc9040ab9.tar.bz2 cgit-6f08e89a88f1f09f9eb7b45aa99d4abcc9040ab9.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); |
