all repos — cgit @ 4fb49864db51affddf37ab2a563b0eb4b33e155d

a hyperfast web frontend for git written in c

ui-log: color line changes

Signed-off-by: Christian Hesse <mail@eworm.de>
Christian Hesse mail@eworm.de
Wed, 29 Jun 2016 09:37:57 +0200
commit

4fb49864db51affddf37ab2a563b0eb4b33e155d

parent

9984e7ab49c59e49a0d7e62c3435e7133f7a53ec

2 files changed, 11 insertions(+), 1 deletions(-)

jump to
M cgit.csscgit.css

@@ -590,6 +590,15 @@

div#cgit span.age-years { color: #bbb; } + +div#cgit span.insertions { + color: #080; +} + +div#cgit span.deletions { + color: #800; +} + div#cgit div.footer { margin-top: 0.5em; text-align: center;
M ui-log.cui-log.c

@@ -258,7 +258,8 @@

if (ctx.repo->enable_log_filecount) htmlf("</td><td>%d", files); if (ctx.repo->enable_log_linecount) - htmlf("</td><td>-%d/+%d", rem_lines, add_lines); + htmlf("</td><td><span class='deletions'>-%d</span>/" + "<span class='insertions'>+%d</span>", rem_lines, add_lines); html("</td></tr>\n");