diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2015-02-03 18:45:39 +0100 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2015-02-03 18:45:39 +0100 |
commit | 39bfe0aa1d3a17858accce3b8118fd9fe2926cc7 (patch) | |
tree | ad0ee87ef8c471a6f12295242fbaf5ac6fd76f05 /app/views/projects/notes | |
parent | 7bf203685210a7484c8deb03d7275e482656e2b3 (diff) | |
download | gitlab-ce-39bfe0aa1d3a17858accce3b8118fd9fe2926cc7.tar.gz |
Also show colors in the sidebar of comment
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r-- | app/views/projects/notes/discussions/_diff.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/notes/discussions/_diff.html.haml b/app/views/projects/notes/discussions/_diff.html.haml index b4d1cce7980..f717c77a898 100644 --- a/app/views/projects/notes/discussions/_diff.html.haml +++ b/app/views/projects/notes/discussions/_diff.html.haml @@ -19,8 +19,10 @@ %td.new_line= "..." %td.line_content.matched= line.text - else - %td.old_line= raw(line.type == "new" ? " " : line.old_pos) - %td.new_line= raw(line.type == "old" ? " " : line.new_pos) + %td.old_line{class: line.type == "new" ? "new" : "old"} + = raw(line.type == "new" ? " " : line.old_pos) + %td.new_line{class: line.type == "new" ? "new" : "old"} + = raw(line.type == "old" ? " " : line.new_pos) %td.line_content{class: "noteable_line #{line.type} #{line_code}", "line_code" => line_code}= raw diff_line_content(line.text) - if line_code == note.line_code |