It's not the same: with the first patch (combined with another
attached patch), when I click on a repo from the first page, I go to
the about page.
Here, I end up on the summary page.
On Wed, Jan 4, 2023 at 4:10 PM Jason A. Donenfeld <[email protected]> wrote:
>
> Those got merged to master, long overdue.
--
Jean-Christophe
---
ui-tree.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui-tree.c b/ui-tree.c
index 1c7540a..d577c6b 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -254,6 +254,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);