summaryrefslogtreecommitdiff
path: root/ui-log.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-07-06 22:42:36 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-23 05:20:42 +0100
commit81509a228c7428abeb56ecacb45ccd8dc8fc6209 (patch)
treeb60adc2400493c4de91c6550ecce6f786ec7e5c3 /ui-log.c
parent44f8c11c8d6edadedb9b83baf6f6a786c0bd8c30 (diff)
css: highlight even table rows and skip empty rows
This is stolen from kernel.org css [0]. [0] https://git.kernel.org/cgit-korg-0.10.1.css
Diffstat (limited to 'ui-log.c')
-rw-r--r--ui-log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui-log.c b/ui-log.c
index 6cc81a3..3220fd9 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -263,8 +263,9 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
html("</td></tr>\n");
- if (revs->graph || ctx.qry.showmsg) { /* Print a second table row */
- html("<tr class='nohover'>");
+ if ((revs->graph && !graph_is_commit_finished(revs->graph))
+ || ctx.qry.showmsg) { /* Print a second table row */
+ html("<tr class='nohover-highlight'>");
if (ctx.qry.showmsg) {
/* Concatenate commit message + notes in msgbuf */