" class="<%= local_assigns[:preview] ? 'preview' : nil %>"> <%= post.user.name %>
<%= t('.user_joined') %>: <%= l post.user.created_at.to_date %>
<% if post.user.respond_to?(:forum_posts_count) %> <%= t('.user_posts_count') %>: <%= number_with_delimiter post.user.forum_posts_count %> <% end %>
<%= t('.post_sent') %>: <%= l post.created_at %> / <%= "#{time_ago_in_words(post.created_at)} #{t('simple_forum.ago', :default => 'ago')}" %> <% if user_authenticated? %> <% if post.editable_by?(authenticated_user, @forum.moderated_by?(authenticated_user)) %> <%= link_to t('.edit'), simple_forum.edit_forum_topic_post_path(@forum, @topic, post) %> <% end %> <% if post.deletable_by?(authenticated_user, @forum.moderated_by?(authenticated_user)) %> <%= link_to t('.delete'), simple_forum.delete_forum_topic_post_path(@forum, @topic, post), :method => :delete, :confirm => t('simple_forum.are_you_sure') %> <% end %> <% if @topic.is_open? %> <%= link_to t('.cite'), "#", :onclick => "$('#new_post_form textarea').val('[quote=\"#{post.user.name}\"]\\n#{escape_javascript(post.body)}\\n[/quote]'); return false;" %> <% end %> <% end %>
<% if post.is_deleted? %>
<%= t('.post_deleted') %> <% if post.deleted_by %> <%= t('simple_forum.by') %> <%= post.deleted_by.name %> <% end %> <%= t('simple_forum.at') %> <%= l post.deleted_at %>
<% else %> <%= post.output %> <% end %> <% if !post.is_deleted? && post.is_edited? %>
<%= t('.post_edited') %> <% if post.edited_by %> <%= t('simple_forum.by') %> <%= post.edited_by.name %> <% end %> <%= t('simple_forum.at') %> <%= l post.edited_at %>
<% end %>