about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ui-summary.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/ui-summary.c b/ui-summary.c index 04a466a..ba90510 100644 --- a/ui-summary.c +++ b/ui-summary.c
@@ -58,11 +58,17 @@ static int print_branch(struct refinfo *ref)
58 html("<tr><td>"); 58 html("<tr><td>");
59 cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0); 59 cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0);
60 html("</td><td>"); 60 html("</td><td>");
61 cgit_print_age(info->commit->date, -1, NULL); 61
62 html("</td><td>"); 62 if (ref->object->type == OBJ_COMMIT) {
63 html_txt(info->author); 63 cgit_print_age(info->commit->date, -1, NULL);
64 html("</td><td>"); 64 html("</td><td>");
65 cgit_commit_link(info->subject, NULL, NULL, name, NULL); 65 html_txt(info->author);
66 html("</td><td>");
67 cgit_commit_link(info->subject, NULL, NULL, name, NULL);
68 } else {
69 html("</td><td></td><td>");
70 cgit_object_link(ref->object);
71 }
66 html("</td></tr>\n"); 72 html("</td></tr>\n");
67 return 0; 73 return 0;
68} 74}