summaryrefslogtreecommitdiffabout
path: root/ui-log.c
authorLars Hjemli <hjemli@gmail.com>2008-11-29 18:11:26 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-11-30 12:01:44 (UTC)
commitab67164d6217fcda5ef3e07aefa3dd6eee6b65a3 (patch) (side-by-side diff)
tree1c5430d46e9edf9306178967266c6e6373f06b31 /ui-log.c
parent951f550b60befeacd7334aebd64c891e72be5ac4 (diff)
downloadcgit-ab67164d6217fcda5ef3e07aefa3dd6eee6b65a3.zip
cgit-ab67164d6217fcda5ef3e07aefa3dd6eee6b65a3.tar.gz
cgit-ab67164d6217fcda5ef3e07aefa3dd6eee6b65a3.tar.bz2
ui-log: use css to make full-log prettier
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-log.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-log.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/ui-log.c b/ui-log.c
index adc9a66..00ecd4e 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -40,3 +40,4 @@ void print_commit(struct commit *commit)
info = cgit_parse_commit(commit);
- html("<tr><td>");
+ htmlf("<tr%s><td>",
+ ctx.qry.showmsg ? " class='logheader'" : "");
tmp = fmt("id=%s", sha1_to_hex(commit->object.sha1));
@@ -46,9 +47,6 @@ void print_commit(struct commit *commit)
html_link_close();
- html("</td><td>");
- if (ctx.qry.showmsg)
- html("<u>");
+ htmlf("</td><td%s>",
+ 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("</u>");
html("</td><td>");
@@ -74,6 +72,6 @@ void print_commit(struct commit *commit)
}
- htmlf("<tr class='nohover'><td></td><td colspan='%d'><div class='commit-msg'>",
+ htmlf("<tr class='nohover'><td/><td colspan='%d' class='logmsg'>",
cols);
html_txt(info->msg);
- html("</div><br/></td></tr>\n");
+ html("</td></tr>\n");
}