mirror of
https://git.zx2c4.com/cgit
synced 2025-08-28 05:44:16 +02:00
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>
This commit is contained in:
parent
707746ce09
commit
42bee9ae69
3 changed files with 12 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue