mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 02:18:42 +00:00
ui-log: color line changes
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
9984e7ab49
commit
4fb49864db
9
cgit.css
9
cgit.css
@ -590,6 +590,15 @@ div#cgit span.age-months {
|
|||||||
div#cgit span.age-years {
|
div#cgit span.age-years {
|
||||||
color: #bbb;
|
color: #bbb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div#cgit span.insertions {
|
||||||
|
color: #080;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#cgit span.deletions {
|
||||||
|
color: #800;
|
||||||
|
}
|
||||||
|
|
||||||
div#cgit div.footer {
|
div#cgit div.footer {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
3
ui-log.c
3
ui-log.c
@ -258,7 +258,8 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
|
|||||||
if (ctx.repo->enable_log_filecount)
|
if (ctx.repo->enable_log_filecount)
|
||||||
htmlf("</td><td>%d", files);
|
htmlf("</td><td>%d", files);
|
||||||
if (ctx.repo->enable_log_linecount)
|
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");
|
html("</td></tr>\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user