|
<%= post.user.username %>
<%= image_tag post.user.gravatar_url %>
<%= "Administrator" if post.user.admin? %> Posts <%= post.user.posts.size %>Registered <%=l post.user.created_at %> |
Posted <%=l post.created_at %> <%= link_to "Reply", new_topic_post_path(@topic) if can? :create, @topic.posts.new %> <%= link_to "Quote", new_topic_post_path(@topic, :quote => post) if can? :create, @topic.posts.new %> <%= link_to "Edit", edit_post_path(post) if can? :update, post %> <%= link_to "Delete", post, :confirm => "Are you sure?", :method => :delete if can? :destroy, post %> |
| <%= post.body.bbcode_to_html().html_safe %> |
<%= link_to "Back to Forum", forum_path(@topic.forum) %>