<% cache("user-profile-comments-#{@user.updated_at}-#{@user.id}-#{@comments.first&.id}-#{@comments.size}", :expires_in => 1.day) do %>
<% if @comments.any? %> <% if params[:view] == "comments" %>
<% if @user.comments_count > 250 %> Last 250 Comments <% else %> All <%= @user.comments_count %> Comments <% end %>
<% else %>
Recent Comments
<% end %> <% end %> <% @comments.each do |comment| %> <% if comment.commentable.present? && comment.commentable.published && !comment.deleted %>
"> re: <%= comment.commentable.title %> <%= comment.readable_publish_date %>
<%= truncate(strip_tags(comment.processed_html), length:64).html_safe %>
<% end %> <% end %> <% if params[:view] != "comments" && @user.comments_count > 250 %> <% elsif params[:view] != "comments" && @user.comments_count > 8 %> <% end %>
<% end %>