diff options
| author | Christian Hesse <mail@eworm.de> | 2019-01-02 09:20:40 +0100 | 
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2024-01-30 09:08:38 +0100 | 
| commit | c40704523b9936fefb418494f9bf4e96e8923b73 (patch) | |
| tree | 849e513a706614c25640811f30d99c5ee28fb397 | |
| parent | ui-tree: provide link to about page for pretty formatting (diff) | |
| download | cgit-ch/about-link.tar.gz cgit-ch/about-link.tar.bz2 cgit-ch/about-link.zip | |
ui-tree: add about link in tree view listch/about-link
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to '')
| -rw-r--r-- | ui-tree.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -270,6 +270,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); | 
