<% if @root_comment.present? %> <% title("#{@root_comment.title} - #{community_name}") %> <% else %> <% title("Discussion of #{@commentable.title} - #{community_name}") %> <% end %> <%= content_for :page_meta do %> "> <%= meta_keywords_article %> " /> "> "> <% if @root_comment.present? %> <% else %> " /> " /> <% if @commentable.class.name == "Article" && @commentable.published %> <% end %> <% end %> <% end %>
<% if @commentable.class.name == "Article" %> <%= render "shared/payment_pointer", user: @commentable.user %> <% end %> <% unless @root_comment %>
<% if @commentable.respond_to?(:main_image) && @commentable.main_image.present? %>
Cover image for <%= sanitize_and_decode @commentable.title %>
<% end %>

<%= @commentable.title %>

<%= @commentable.is_a?(PodcastEpisode) ? @commentable.podcast.name : @commentable.user.name %> <%= "on #{@commentable.published_at.strftime('%B %d, %Y')}" if @commentable.published_at %>

<% if @commentable.processed_html.present? %>
<% if @commentable.processed_html.size < 350 %> <%= sanitize_rendered_markdown(@commentable.processed_html) %> <% else %> <%= truncate(sanitize(@commentable.processed_html, tags: []), length: 150) %> <% end %>
<% end %>
<% else %> <%= javascript_packs_with_chunks_tag "responseTemplates", defer: true %>

Discussion on: <%= @commentable.title %>

<% end %> <% if @root_comment.present? && (@root_comment.depth > 0 && parent = @root_comment.parent) %>

Replies for: <%= parent.title(150) %>

<% end %>
<% unless @root_comment %> <%= render "form", commentable: @commentable, commentable_type: "Article" %> <% end %>
<% if @root_comment.present? %> <% cache ["comment_root-view-root_#{user_signed_in?}", @root_comment] do %> <%= tree_for(@root_comment, @root_comment.subtree.includes(:user).arrange[@root_comment], @commentable) %> <% end %> <% else %> <% Comment.tree_for(@commentable).each do |comment, sub_comments| %> <% cache ["comment_root_#{user_signed_in?}", comment] do %> <%= tree_for(comment, sub_comments, @commentable) %> <% end %> <% end %> <% end %>
<% if @commentable.any_comments_hidden %>

Some comments have been hidden by the post's author - find out more

<% end %>
<%= render "articles/conduct_and_abuse_actions", page: "comments_index" %>
<% if has_vid?(@commentable) %> <%= render "articles/fitvids" %> <% end %>
<%== TwitterTimelineTag.script %>