From e1e3d501ce7323e2c14bb2973c2514e92320018e Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Fri, 16 May 2025 18:43:06 +1000 Subject: [PATCH] Fix styling mistakes on commit page Fix incorrect text colour (Due to font- vs text- typo) Fix extraneous whitespace around parent commit ID --- themed/commit.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/themed/commit.html b/themed/commit.html index b630b73..eef6110 100644 --- a/themed/commit.html +++ b/themed/commit.html @@ -41,21 +41,17 @@ {{ info->author }} {! cgit_print_age_themed(info->committer_date, info->committer_tz, TM_MONTH * 12); !}
- + {% for struct commit_list *p = commit->parents; p; p = p->next %} {! struct commit *parent = lookup_commit_reference(the_repository, &p->item->object.oid); !} {% if parent %} parent - item->object.oid), ctx.qry.vpath); !}" class="font-mono text-blue-500 hover:text-blue-600 hover:underline"> - {! short_commit_id(oid_to_hex(&p->item->object.oid)); !} - + item->object.oid), ctx.qry.vpath); !}" class="font-mono text-blue-500 hover:text-blue-600 hover:underline">{! short_commit_id(oid_to_hex(&p->item->object.oid)); !} · {% endif %} {% endfor %} commit - object.oid), ctx.qry.vpath); !}" class="font-mono text-blue-500 hover:text-blue-600 hover:underline"> - {! short_commit_id(oid_to_hex(&commit->object.oid)); !} - + object.oid), ctx.qry.vpath); !}" class="font-mono text-blue-500 hover:text-blue-600 hover:underline">{! short_commit_id(oid_to_hex(&commit->object.oid)); !}