diff options
author | Christian Hesse <mail@eworm.de> | 2019-01-02 09:20:40 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2025-08-18 21:14:41 +0200 |
commit | 304a91561cfdba34728de975a8e3dd15990ba87b (patch) | |
tree | 0403f24ff2cd04833dbe3d809f598444c7425986 | |
parent | ui-tree: provide link to about page for pretty formatting (diff) | |
download | cgit-304a91561cfdba34728de975a8e3dd15990ba87b.tar.gz cgit-304a91561cfdba34728de975a8e3dd15990ba87b.tar.bz2 cgit-304a91561cfdba34728de975a8e3dd15990ba87b.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); |