Website Summary Files Commits Branches @commit @diff @stats
path: root / ui-log.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-log.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, 5 insertions, 1 deletions
-rw-r--r--ui-log.c6
diff --git a/ui-log.c b/ui-log.c
index 9906bbc..3439bce 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -65,7 +65,7 @@ void show_commit_decorations(struct commit *commit)
deco = get_name_decoration(&commit->object);
if (!deco)
return;
- html("<span class='decoration'>");
+ html("<span class='decoration'> ");
while (deco) {
struct object_id oid_tag, peeled;
int is_annotated = 0;
@@ -80,12 +80,14 @@ void show_commit_decorations(struct commit *commit)
cgit_log_link(buf, NULL, "branch-deco", buf, NULL,
ctx.qry.vpath, 0, NULL, NULL,
ctx.qry.showmsg, 0);
+ html(" ");
break;
case DECORATION_REF_TAG:
if (!refs_read_ref(get_main_ref_store(the_repository), deco->name, &oid_tag) &&
!peel_object(the_repository, &oid_tag, &peeled, PEEL_OBJECT_VERIFY_TAGGED_OBJECT_TYPE))
is_annotated = !oideq(&oid_tag, &peeled);
cgit_tag_link(buf, NULL, is_annotated ? "tag-annotated-deco" : "tag-deco", buf);
+ html(" ");
break;
case DECORATION_REF_REMOTE:
if (!ctx.repo->enable_remote_branches)
@@ -94,11 +96,13 @@ void show_commit_decorations(struct commit *commit)
oid_to_hex(&commit->object.oid),
ctx.qry.vpath, 0, NULL, NULL,
ctx.qry.showmsg, 0);
+ html(" ");
break;
default:
cgit_commit_link(buf, NULL, "deco", ctx.qry.head,
oid_to_hex(&commit->object.oid),
ctx.qry.vpath);
+ html(" ");
break;
}
deco = deco->next;