Fix parameter passing and wording for per line notes

This commit is contained in:
Riyad Preukschas 2012-10-29 15:55:37 +01:00
parent b91d680257
commit 9b919939a3
9 changed files with 27 additions and 12 deletions

View file

@ -1 +1,6 @@
= link_to "", "#", class: "line_note_link", data: { line_code: line_code }, title: "Add note for this line"
= link_to "",
"#",
id: "line-note-#{line_code}",
class: "line_note_link",
data: @comments_target.merge({ line_code: line_code }),
title: "Add comment on line #{line_code[/[0-9]+$/]}"