Website Summary Files Commits Branches @commit @diff @stats
path: root / ui-tree.c
diff options
context:
space:
mode:
Commit2384fa99a62615c88884d5e0ab7f921f14500646 (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-09-27 22:04:58 +0300
Committer
 Syndamia <kamen@syndamia.com>
2026-09-27 22:16:27 +0300
Filesf5ff1fcd6df2aa0fa78e2a71fda63e82c88cb7e5 /ui-tree.c
cgit-2384fa99a62615c88884d5e0ab7f921f14500646.tar
cgit-2384fa99a62615c88884d5e0ab7f921f14500646.tar.gz
cgit-2384fa99a62615c88884d5e0ab7f921f14500646.zip
Parentb2c665a5ebe44c35befc88bb09b0fe1cbdfd904b (diff)
html: Improve navigation compatibility
Primarily adds spaces between different links to make navigation when CSS is not available easier
1 files changed, 7 insertions, 2 deletions
-rw-r--r--ui-tree.c9
diff --git a/ui-tree.c b/ui-tree.c
index edf06c7..11e5494 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -273,12 +273,17 @@ static int ls_item(const struct object_id *oid, struct strbuf *base,
cgit_log_link("log", NULL, "button", ctx.qry.head,
walk_tree_ctx->curr_rev, fullpath.buf, 0, NULL, NULL,
ctx.qry.showmsg, 0);
- if (ctx.repo->max_stats)
+ html(" ");
+ if (ctx.repo->max_stats) {
cgit_stats_link("stats", NULL, "button", ctx.qry.head,
fullpath.buf);
- if (!S_ISGITLINK(mode))
+ html(" ");
+ }
+ if (!S_ISGITLINK(mode)) {
cgit_plain_link("plain", NULL, "button", ctx.qry.head,
walk_tree_ctx->curr_rev, fullpath.buf);
+ html(" ");
+ }
if (!S_ISDIR(mode) && ctx.repo->enable_blame)
cgit_blame_link("blame", NULL, "button", ctx.qry.head,
walk_tree_ctx->curr_rev, fullpath.buf);