summaryrefslogtreecommitdiffabout
path: root/ui-summary.c
Side-by-side diff
Diffstat (limited to 'ui-summary.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-summary.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui-summary.c b/ui-summary.c
index 04a466a..ba90510 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -55,17 +55,23 @@ static int print_branch(struct refinfo *ref)
if (!info)
return 1;
html("<tr><td>");
cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0);
html("</td><td>");
+
+ if (ref->object->type == OBJ_COMMIT) {
cgit_print_age(info->commit->date, -1, NULL);
html("</td><td>");
html_txt(info->author);
html("</td><td>");
cgit_commit_link(info->subject, NULL, NULL, name, NULL);
+ } else {
+ html("</td><td></td><td>");
+ cgit_object_link(ref->object);
+ }
html("</td></tr>\n");
return 0;
}
static void print_tag_header()
{