diff options
| Commit | 2384fa99a62615c88884d5e0ab7f921f14500646 (patch) | |
|---|---|---|
| Author | 2026-09-27 22:04:58 +0300 | |
| Committer | 2026-09-27 22:16:27 +0300 | |
| Files | f5ff1fcd6df2aa0fa78e2a71fda63e82c88cb7e5 /ui-tree.c | |
| cgit-2384fa99a62615c88884d5e0ab7f921f14500646.tar cgit-2384fa99a62615c88884d5e0ab7f921f14500646.tar.gz cgit-2384fa99a62615c88884d5e0ab7f921f14500646.zip | ||
| Parent | b2c665a5ebe44c35befc88bb09b0fe1cbdfd904b (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.c | 9 |
@@ -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); |
