<%= @post.title %>

<%= link_to @post.user.name, @post.user %> on <%= @post.created_at.strftime("%e. %b %Y") %> <% if current_user && current_user.rank >= rank_to_int("mod") %> - <%= link_to "edit", edit_blogpost_path(@post.id) %> <% end %>
<%= RbbCode.new.convert(@post.text).html_safe %>
<% @post.comments.each do |c| %>
"> <%= link_to c.user.name, c.user %> on <%= c.created_at.strftime("%e. %b %Y") %> <% if current_user && current_user.rank >= rank_to_int("mod") %> - <%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c) %> <% end %>
<%= c.text %>
<% end %> <% if current_user %>

New comment

<%= simple_form_for [@post, @comment] do |f| %> <%= f.input :text, :label => false, :as => "text", :placeholder => "Comment" %> <%= f.submit %> <% end %> <% end %>