Use CSS to hide reply forms

We were using inline styles and passing local variables around, while
the rule we were following is very simple: it's only hidden if it's a
form to reply to a comment.
This commit is contained in:
Javi Martín
2020-05-11 17:17:12 +02:00
parent 61a63ddd59
commit ae41becd3a
9 changed files with 11 additions and 8 deletions

View File

@@ -107,7 +107,6 @@
<% if !valuation || can?(:comment_valuation, comment.commentable) %>
<%= render "comments/form", { commentable: comment.commentable,
parent_id: comment.id,
toggeable: true,
valuation: valuation } %>
<% end %>
<% end %>