diff options
author | Christian Hesse <mail@eworm.de> | 2019-01-02 09:20:40 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-10-16 12:02:09 +0200 |
commit | 839fb8442bd51e20dcdb243c75402109381fec3a (patch) | |
tree | 71aafdcc2778e1f7226d0b293f5a33cb22f32134 | |
parent | 4af65d60c65ec636914ab1aa038aa4fe8dc68163 (diff) | |
download | cgit-839fb8442bd51e20dcdb243c75402109381fec3a.tar.gz cgit-839fb8442bd51e20dcdb243c75402109381fec3a.tar.xz |
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); |