Fix styling mistakes on commit page
Fix incorrect text colour (Due to font- vs text- typo) Fix extraneous whitespace around parent commit ID
This commit is contained in:
parent
b486a93638
commit
e1e3d501ce
@ -41,21 +41,17 @@
|
|||||||
<span class="font-semibold text-sm">{{ info->author }}</span>
|
<span class="font-semibold text-sm">{{ info->author }}</span>
|
||||||
<span class="text-gray-500 text-sm">{! cgit_print_age_themed(info->committer_date, info->committer_tz, TM_MONTH * 12); !}</span>
|
<span class="text-gray-500 text-sm">{! cgit_print_age_themed(info->committer_date, info->committer_tz, TM_MONTH * 12); !}</span>
|
||||||
<div class="flex-1"></div>
|
<div class="flex-1"></div>
|
||||||
<span class="font-gray-500 text-sm">
|
<span class="text-gray-500 text-sm">
|
||||||
{% for struct commit_list *p = commit->parents; p; p = p->next %}
|
{% for struct commit_list *p = commit->parents; p; p = p->next %}
|
||||||
{! struct commit *parent = lookup_commit_reference(the_repository, &p->item->object.oid); !}
|
{! struct commit *parent = lookup_commit_reference(the_repository, &p->item->object.oid); !}
|
||||||
{% if parent %}
|
{% if parent %}
|
||||||
parent
|
parent
|
||||||
<a href="{! cgit_shared_reporevlink_url("commit", ctx.qry.head, oid_to_hex(&p->item->object.oid), ctx.qry.vpath); !}" class="font-mono text-blue-500 hover:text-blue-600 hover:underline">
|
<a href="{! cgit_shared_reporevlink_url("commit", ctx.qry.head, oid_to_hex(&p->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)); !}</a>
|
||||||
{! short_commit_id(oid_to_hex(&p->item->object.oid)); !}
|
|
||||||
</a>
|
|
||||||
·
|
·
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
commit
|
commit
|
||||||
<a href="{! cgit_shared_reporevlink_url("commit", ctx.qry.head, oid_to_hex(&commit->object.oid), ctx.qry.vpath); !}" class="font-mono text-blue-500 hover:text-blue-600 hover:underline">
|
<a href="{! cgit_shared_reporevlink_url("commit", ctx.qry.head, oid_to_hex(&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)); !}</a>
|
||||||
{! short_commit_id(oid_to_hex(&commit->object.oid)); !}
|
|
||||||
</a>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user