diff options
author | Christian Hesse | 2016-06-29 09:37:57 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2016-07-05 16:14:47 +0200 |
commit | 4fb49864db51affddf37ab2a563b0eb4b33e155d (patch) | |
tree | c913982a2026dbf8b3ecca28849144f665b4b23f | |
parent | 9984e7ab49c59e49a0d7e62c3435e7133f7a53ec (diff) | |
download | cgit-4fb49864db51affddf37ab2a563b0eb4b33e155d.tar.gz cgit-4fb49864db51affddf37ab2a563b0eb4b33e155d.tar.bz2 cgit-4fb49864db51affddf37ab2a563b0eb4b33e155d.zip |
ui-log: color line changes
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r-- | cgit.css | 9 | ||||
-rw-r--r-- | ui-log.c | 3 |
2 files changed, 11 insertions, 1 deletions
@@ -590,6 +590,15 @@ div#cgit span.age-months { | |||
590 | div#cgit span.age-years { | 590 | div#cgit span.age-years { |
591 | color: #bbb; | 591 | color: #bbb; |
592 | } | 592 | } |
593 | |||
594 | div#cgit span.insertions { | ||
595 | color: #080; | ||
596 | } | ||
597 | |||
598 | div#cgit span.deletions { | ||
599 | color: #800; | ||
600 | } | ||
601 | |||
593 | div#cgit div.footer { | 602 | div#cgit div.footer { |
594 | margin-top: 0.5em; | 603 | margin-top: 0.5em; |
595 | text-align: center; | 604 | text-align: center; |
@@ -258,7 +258,8 @@ static void print_commit(struct commit *commit, struct rev_info *revs) | |||
258 | if (ctx.repo->enable_log_filecount) | 258 | if (ctx.repo->enable_log_filecount) |
259 | htmlf("</td><td>%d", files); | 259 | htmlf("</td><td>%d", files); |
260 | if (ctx.repo->enable_log_linecount) | 260 | if (ctx.repo->enable_log_linecount) |
261 | htmlf("</td><td>-%d/+%d", rem_lines, add_lines); | 261 | htmlf("</td><td><span class='deletions'>-%d</span>/" |
262 | "<span class='insertions'>+%d</span>", rem_lines, add_lines); | ||
262 | 263 | ||
263 | html("</td></tr>\n"); | 264 | html("</td></tr>\n"); |
264 | 265 | ||