aboutsummarybugs & patchesrefslogtreecommitdiffstats
path: root/ui-tree.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2018-12-29 00:13:54 +0100
committerChristian Hesse <mail@eworm.de>2025-11-17 21:40:58 +0100
commitcb2bad0566ddf90954997d867fdc5be9f78006cf (patch)
treec6e92c5f62aa21d3db0f92a5c656de78536fb386 /ui-tree.c
parente63c1836a3e7627320039c3761cc9af47e2680a2 (diff)
downloadcgit-cb2bad0566ddf90954997d867fdc5be9f78006cf.tar.gz
cgit-cb2bad0566ddf90954997d867fdc5be9f78006cf.tar.bz2
cgit-cb2bad0566ddf90954997d867fdc5be9f78006cf.tar.xz
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 <mail@eworm.de>
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 5ac8c9a..851074e 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -112,6 +112,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 && !is_binary) {