ui-log: color line changes

Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Christian Hesse 2016-06-29 09:37:57 +02:00 提交者 Jason A. Donenfeld
父節點 9984e7ab49
當前提交 4fb49864db
共有 2 個檔案被更改,包括 11 行新增1 行删除

查看文件

@ -590,6 +590,15 @@ div#cgit span.age-months {
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;

查看文件

@ -258,7 +258,8 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
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");