diff options
author | Christian Hesse | 2016-07-06 22:42:36 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2016-11-23 05:20:42 +0100 |
commit | 81509a228c7428abeb56ecacb45ccd8dc8fc6209 (patch) | |
tree | b60adc2400493c4de91c6550ecce6f786ec7e5c3 /ui-log.c | |
parent | 44f8c11c8d6edadedb9b83baf6f6a786c0bd8c30 (diff) | |
download | cgit-81509a228c7428abeb56ecacb45ccd8dc8fc6209.tar.gz cgit-81509a228c7428abeb56ecacb45ccd8dc8fc6209.tar.bz2 cgit-81509a228c7428abeb56ecacb45ccd8dc8fc6209.zip |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -263,8 +263,9 @@ static void print_commit(struct commit *commit, struct rev_info *revs) | |||
263 | 263 | ||
264 | html("</td></tr>\n"); | 264 | html("</td></tr>\n"); |
265 | 265 | ||
266 | if (revs->graph || ctx.qry.showmsg) { /* Print a second table row */ | 266 | if ((revs->graph && !graph_is_commit_finished(revs->graph)) |
267 | html("<tr class='nohover'>"); | 267 | || ctx.qry.showmsg) { /* Print a second table row */ |
268 | html("<tr class='nohover-highlight'>"); | ||
268 | 269 | ||
269 | if (ctx.qry.showmsg) { | 270 | if (ctx.qry.showmsg) { |
270 | /* Concatenate commit message + notes in msgbuf */ | 271 | /* Concatenate commit message + notes in msgbuf */ |