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

@@ -27,7 +27,6 @@
<% elsif !valuation || can?(:comment_valuation, commentable) %>
<%= render "comments/form", { commentable: commentable,
parent_id: nil,
toggeable: false,
valuation: valuation } %>
<% end %>
<% else %>