<% cache("user-profile-comments-#{@user.last_comment_at}-#{@user.id}-#{@comments.size}", expires_in: 2.days) do %>
<% if @comments.present? %> <% 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 %>
<%= 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 %>