Diffstat (limited to 'ui-log.c')
| -rw-r--r-- | ui-log.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -38,17 +38,19 @@ void print_commit(struct commit *commit) int cols = 2; info = cgit_parse_commit(commit); - htmlf("<tr%s><td>", - ctx.qry.showmsg ? " class='logheader'" : ""); + html("<tr><td>"); tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1)); tmp = cgit_pageurl(ctx.repo->url, "commit", tmp); html_link_open(tmp, NULL, NULL); cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); html_link_close(); - htmlf("</td><td%s>", - ctx.qry.showmsg ? " class='logsubject'" : ""); + html("</td><td>"); + if (ctx.qry.showmsg) + html("<u>"); cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, sha1_to_hex(commit->object.sha1)); + if (ctx.qry.showmsg) + html("</u>"); html("</td><td>"); html_txt(info->author); if (ctx.repo->enable_log_filecount) { @@ -70,10 +72,10 @@ void print_commit(struct commit *commit) if (ctx.repo->enable_log_linecount) cols++; } - htmlf("<tr class='nohover'><td/><td colspan='%d' class='logmsg'>", + htmlf("<tr class='nohover'><td></td><td colspan='%d'><div class='commit-msg'>", cols); html_txt(info->msg); - html("</td></tr>\n"); + html("</div><br/></td></tr>\n"); } cgit_free_commitinfo(info); } |