@@ -6,18 +6,18 @@ def render_comment_tree(comment)
6
6
concat content_tag ( :tr ) {
7
7
concat content_tag ( :td , valign : "top" , class : "votelinks" ) {
8
8
content_tag ( :center ) {
9
- concat button_to ( upvote_article_comment_path ( comment ) , method : :post , class : "btn btn-sm upvote-button" , data : { votable_type : ' Comment' , votable_id : comment . id , article_id : comment . article . id } ) {
10
- content_tag ( :i , '' , class : "fas fa-arrow-up" )
9
+ concat button_to ( upvote_article_comment_path ( comment ) , method : :post , class : "btn btn-sm upvote-button" , data : { votable_type : " Comment" , votable_id : comment . id , article_id : comment . article . id } ) {
10
+ content_tag ( :i , "" , class : "fas fa-arrow-up" )
11
11
}
12
- concat button_to ( downvote_article_comment_path ( comment ) , method : :post , class : "btn btn-sm downvote-button" , data : { votable_type : ' Comment' , votable_id : comment . id , article_id : comment . article . id } ) {
13
- content_tag ( :i , '' , class : "fas fa-arrow-down" )
12
+ concat button_to ( downvote_article_comment_path ( comment ) , method : :post , class : "btn btn-sm downvote-button" , data : { votable_type : " Comment" , votable_id : comment . id , article_id : comment . article . id } ) {
13
+ content_tag ( :i , "" , class : "fas fa-arrow-down" )
14
14
}
15
15
}
16
16
}
17
17
concat content_tag ( :td , comment . text , valign : "top" , style : "padding-left: 10px;" )
18
18
}
19
19
concat content_tag ( :tr ) {
20
- concat content_tag ( :td , '' , colspan : "2" )
20
+ concat content_tag ( :td , "" , colspan : "2" )
21
21
concat content_tag ( :td , class : "subtext" ) {
22
22
safe_concat content_tag ( :span , "#{ comment . score } points" , id : "score-Comment-#{ comment . id } " , class : "score" )
23
23
concat raw ( " " )
@@ -30,7 +30,7 @@ def render_comment_tree(comment)
30
30
safe_concat link_to ( " reply" , article_comment_path ( comment . article , comment ) )
31
31
}
32
32
}
33
- concat content_tag ( :tr , '' , style : "height:5px" )
33
+ concat content_tag ( :tr , "" , style : "height:5px" )
34
34
}
35
35
}
36
36
if comment . replies . any?
@@ -43,4 +43,3 @@ def render_comment_tree(comment)
43
43
end
44
44
end
45
45
end
46
-
0 commit comments