OSDN Git Service

Update links for inline comments to use data-* attributes
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>
Thu, 13 Sep 2012 23:22:09 +0000 (01:22 +0200)
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>
Fri, 14 Sep 2012 19:41:56 +0000 (21:41 +0200)
app/views/commits/_text_file.html.haml
app/views/notes/_reply_button.html.haml

index 5dc8dbd..7a00eb4 100644 (file)
@@ -13,7 +13,7 @@
         %td.old_line
           = link_to raw(type == "new" ? "&nbsp;" : line_old), "##{line_code}", id: line_code
           - if @comments_allowed
-            = link_to "", "#", class: "line_note_link", "line_code" => line_code, title: "Add note for this line"
+            = link_to "", "#", class: "line_note_link", data: { line_code: line_code }, title: "Add note for this line"
         %td.new_line= link_to raw(type == "old" ? "&nbsp;" : line_new) , "##{line_code}", id: line_code
         %td.line_content{class: "noteable_line #{type} #{line_code}", "line_code" => line_code}= raw "#{line} &nbsp;"
 
index c981fb9..42c737c 100644 (file)
@@ -1,4 +1,4 @@
 %tr.line_notes_row.reply
   %td{colspan: 3}
     %i.icon-comment
-    = link_to "Reply", "#", class: "line_note_reply_link", "line_code" => line_code, title: "Add note for this line"
+    = link_to "Reply", "#", class: "line_note_reply_link", data: { line_code: line_code }, title: "Add note for this line"