<%= paginate @comments %> <% @comments.each do |comment| %>
<% if comment.commentable %> re: <%= comment.commentable.title %> (<%= comment.public_reactions_count %> ❤️) <% end %>

<%= sanitize comment.processed_html, tags: %w[strong em p h1 h2 h3 h4 h5 h6 i u b code pre br ul ol li small sup img a span hr blockquote], attributes: %w[href strong em ref rel src title alt class] %>

<% if comment.user %> <%= comment.user.username %> profile <%= comment.user.username %> <% end %> <% if comment.user && comment.user.twitter_username.present? %> | @<%= comment.user.twitter_username %> <% end %>
View <% if comment.reactions.where(user_id: current_user.id).empty? %> <%= form_tag(reactions_path, remote: true, class: "d-inline ml-2") do %> <%= hidden_field_tag(:reactable_type, "Comment") %> <%= hidden_field_tag(:reactable_id, comment.id) %> <% end %> <% end %>
<% end %> <%= paginate @comments %>