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
This commit is contained in:
Christian Hesse
2016-07-06 22:42:36 +02:00
committed by Jason A. Donenfeld
parent 44f8c11c8d
commit 81509a228c
3 changed files with 24 additions and 3 deletions

View File

@ -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 */