X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/0274b57d55a12ed38259757dbfae96b79cfa2e0b..ab67164d6217fcda5ef3e07aefa3dd6eee6b65a3:/ui-log.c
diff --git a/ui-log.c b/ui-log.c
index 631e46d..00ecd4e 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -35,21 +35,20 @@ void print_commit(struct commit *commit)
{
struct commitinfo *info;
char *tmp;
+ int cols = 2;
info = cgit_parse_commit(commit);
- html("
| ");
+ htmlf(" |
| ",
+ ctx.qry.showmsg ? " class='logheader'" : "");
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();
- html(" | ");
- if (ctx.qry.showmsg)
- html("");
+ htmlf(" | ",
+ ctx.qry.showmsg ? " class='logsubject'" : "");
cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head,
sha1_to_hex(commit->object.sha1));
- if (ctx.qry.showmsg)
- html("");
html(" | ");
html_txt(info->author);
if (ctx.repo->enable_log_filecount) {
@@ -66,15 +65,15 @@ void print_commit(struct commit *commit)
}
html(" |
\n");
if (ctx.qry.showmsg) {
- html(" | ");
- html_txt(info->msg);
- html("
| | ");
if (ctx.repo->enable_log_filecount) {
- html(" | ");
+ cols++;
if (ctx.repo->enable_log_linecount)
- html(" | ");
+ cols++;
}
- html("
\n");
+ htmlf(" | ",
+ cols);
+ html_txt(info->msg);
+ html(" |
\n");
}
cgit_free_commitinfo(info);
}