summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--cgit.css15
-rw-r--r--ui-log.c14
2 files changed, 21 insertions, 8 deletions
diff --git a/cgit.css b/cgit.css
index a37d218..7928c2f 100644
--- a/cgit.css
+++ b/cgit.css
@@ -122,2 +122,6 @@ table.list tr {
+table.list tr.logheader {
+ background: #eee;
+}
+
table.list tr:hover {
@@ -145,2 +149,13 @@ table.list td {
+table.list td.logsubject {
+ font-family: monospace;
+ font-weight: bold;
+}
+
+table.list td.logmsg {
+ font-family: monospace;
+ white-space: pre;
+ padding: 1em 0em 2em 0em;
+}
+
table.list td a {
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");
}