diff options
1 files changed, 5 insertions, 1 deletions
| -rw-r--r-- | ui-log.c | 6 |
@@ -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; |
