Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2018-12-29 02:13:54 +0300
committerChristian Hesse <mail@eworm.de>2022-12-19 19:58:31 +0300
commit25a7920e30cade15f831c95e64a01b9d897a8cea (patch)
tree7a27d1ced049950ac0fcaa44af34f8acab8645ec /ui-tree.c
parent907134b7a29177cb45aa461c549c004b1ae875af (diff)
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 98ce1ca..5d7b257 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -110,6 +110,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) {