diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-04-14 17:10:36 +0300 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-04-14 20:33:29 +0300 |
commit | 80d8f8b87609ffb9b0fcc1f74fbeb4520a193e07 (patch) | |
tree | 31c0627cb7de55dedeb21268137525b9b6e380a2 /app/views/projects/notes | |
parent | 2f81baf4767df7ce0144a63b4e451b7d8e09f86a (diff) |
Syntax & style updates
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r-- | app/views/projects/notes/discussions/_diff.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/notes/discussions/_diff.html.haml b/app/views/projects/notes/discussions/_diff.html.haml index 9fd9d5bb2aa..d46aab000c3 100644 --- a/app/views/projects/notes/discussions/_diff.html.haml +++ b/app/views/projects/notes/discussions/_diff.html.haml @@ -20,9 +20,9 @@ %td.new_line.diff-line-num= "..." %td.line_content.match= line.text - else - %td.old_line.diff-line-num{data: {linenumber: raw(type == "new" ? " " : line.old_pos)}} - %td.new_line.diff-line-num{data: {linenumber: raw(type == "old" ? " " : line.new_pos)}} - %td.line_content{class: "noteable_line #{type} #{line_code}", line_code: line_code}= diff_line_content(line.text, type) + %td.old_line.diff-line-num{ data: { linenumber: type == "new" ? " ".html_safe : line.old_pos } } + %td.new_line.diff-line-num{ data: { linenumber: type == "old" ? " ".html_safe : line.new_pos } } + %td.line_content{ class: ['noteable_line', type, line_code], line_code: line_code }= diff_line_content(line.text, type) - if line_code == note.line_code = render "projects/notes/diff_notes_with_reply", notes: discussion_notes |