Commit 29c71f2fb95ba98513ff96939fd4a602b4a3bd6f

Authored by Riyad Preukschas
1 parent c02e3f21

Rename 'notes/reply_button' partial to 'notes/per_line_reply_button'

app/views/commits/_text_file.html.haml
... ... @@ -23,4 +23,4 @@
23 23 - comments.each_with_index do |note, i|
24 24 = render "notes/per_line_show", note: note
25 25 - @line_notes.reject!{ |n| n == note }
26   - = render "notes/reply_button", line_code: line_code
  26 + = render "notes/per_line_reply_button", line_code: line_code
... ...
app/views/notes/_create_per_line_note.js.haml
... ... @@ -11,7 +11,7 @@
11 11 // find the commented line ...
12 12 var trEl = $(".#{note.line_code}").parent();
13 13 // ... and insert the note and the reply button after it
14   - trEl.after("#{escape_javascript(render "notes/reply_button", line_code: note.line_code)}");
  14 + trEl.after("#{escape_javascript(render "notes/per_line_reply_button", line_code: note.line_code)}");
15 15 trEl.after("#{escape_javascript(render "notes/per_line_show", note: note)}");
16 16 } else {
17 17 // instert new note before reply button
... ...
app/views/notes/_per_line_reply_button.html.haml 0 → 100644
... ... @@ -0,0 +1,4 @@
  1 +%tr.line_notes_row.reply
  2 + %td{colspan: 3}
  3 + %i.icon-comment
  4 + = link_to "Reply", "#", class: "line_note_reply_link", data: { line_code: line_code }, title: "Add note for this line"
... ...
app/views/notes/_reply_button.html.haml
... ... @@ -1,4 +0,0 @@
1   -%tr.line_notes_row.reply
2   - %td{colspan: 3}
3   - %i.icon-comment
4   - = link_to "Reply", "#", class: "line_note_reply_link", data: { line_code: line_code }, title: "Add note for this line"