<%# We don't currently cache the forum posts because they have permissions to deal with %> <%= content_tag :div, id: dom_id(forum_post), class: forum_post_classes(forum_post) do %>
<% if is_moderator_or_owner?(forum_post) %>
<%= link_to icon("pencil"), simple_discussion.edit_forum_thread_forum_post_path(@forum_thread, forum_post), class: "text-muted", data: { toggle: "tooltip", placement: "left" }, title: "Edit this post" %>
<% end %>
<%= avatar_tag(forum_post.user.email) %> <%= forum_post.user.name %> <%= forum_user_badge(forum_post.user) %> commented on <%= link_to forum_post.created_at.strftime("%b %d, %Y"), simple_discussion.forum_thread_path(@forum_thread, anchor: "forum_post_#{forum_post.id}") %>:
<%= formatted_content forum_post.body %>
<% if @forum_thread.solved? && forum_post.solved? %> <% elsif is_moderator_or_owner?(@forum_thread) %> <% end %> <% end %>