From 0b203a5cd09fb227316898ee40fa63f11e26be5b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 29 Dec 2018 00:13:54 +0100 Subject: ui-tree: provide link to about page for pretty formatting We have an ongoing discussion about display filters and pretty formatting in tree view. How about providing a link to about page for pretty formatting? Signed-off-by: Christian Hesse --- ui-tree.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui-tree.c') diff --git a/ui-tree.c b/ui-tree.c index 1e4efb2..fd92b1d 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -108,6 +108,9 @@ static void print_object(const struct object_id *oid, const char *path, const ch cgit_print_layout_start(); htmlf("blob: %s (", oid_to_hex(oid)); + cgit_about_link("about", NULL, NULL, ctx.qry.head, + rev, path); + html(") ("); cgit_plain_link("plain", NULL, NULL, ctx.qry.head, rev, path); if (ctx.repo->enable_blame) { -- cgit v1.2.3-54-g00ecf