<% title "#{@post.title}" %> <%= link_to "News", blogposts_path %> → <%= @post.title %>

<%= truncate(@post.title, length: 60, omission: " …") %>

<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %> <%= render partial: "users/username", locals: { user: @post.author } %> <%= link_to p do %> <%= ago @post.created_at %> <% end %> <%= link_to "edit", edit_blogpost_path(@post.id), class: "editlink" if mod? %>
<%= render_md(@post.content).html_safe %>

<%= "#{pluralize(@post.comments.size, 'comment')}." %>

<% @comments.each do |c| %> <%= render "comments/comment", c: c %> <% end %> <%= paginate @comments %> <% if current_user %> <% if @post.can_comment? current_user %> <%= render "comments/new" %> <% else %>

You don't have the required permission to reply here.

<% end %> <% else %>

Please <%= link_to "Log in", login_path(return_path: request.env['PATH_INFO']), action: "new" %> to post a reply.

<% end %>