X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/0c8dd9c4bcc7a1a7a49f4eca1f3eb869d0995ea2..cbcdbcf2bff23113fe81df8f11fe7843b8ed637e:/ui-summary.c diff --git a/ui-summary.c b/ui-summary.c index 178e959..ba90510 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -58,11 +58,17 @@ static int print_branch(struct refinfo *ref) html(""); cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0); html(""); - cgit_print_age(info->commit->date, -1, NULL); - html(""); - html_txt(info->author); - html(""); - cgit_commit_link(info->subject, NULL, NULL, name, NULL); + + if (ref->object->type == OBJ_COMMIT) { + cgit_print_age(info->commit->date, -1, NULL); + html(""); + html_txt(info->author); + html(""); + cgit_commit_link(info->subject, NULL, NULL, name, NULL); + } else { + html(""); + cgit_object_link(ref->object); + } html("\n"); return 0; } @@ -236,7 +242,7 @@ void cgit_print_summary() html_include(cgit_repo->readme); html(""); if (cgit_summary_log > 0) - cgit_print_log(cgit_query_head, 0, cgit_summary_log, NULL, NULL, 0); + cgit_print_log(cgit_query_head, 0, cgit_summary_log, NULL, NULL, NULL, 0); html(""); if (cgit_summary_log > 0) html("");