25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
<% title "#{@post.title}" %>
|
|
|
|
<%= link_to "News", blogposts_path %> → <%= link_to @post.title %>
|
|
<h1><%= truncate(@post.title, length: 60, omission: " …") %></h1>
|
|
|
|
<div class="item-group post with-avatar" id="post-<%= @post.id %>">
|
|
<div class="header">
|
|
<%= link_to(@post.author.avatar(64), @post.author, title: @post.author.ign) %>
|
|
<%= render partial: "users/username", locals: { user: @post.author } %> <%= link_to p do %><time title="<%= @post.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= @post.created_at.to_datetime.rfc3339 %>"><%= @post.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
|
<%= link_to "edit", edit_blogpost_path(@post.id), class: "editlink" if mod? %>
|
|
<div class="clear-right"></div>
|
|
</div>
|
|
<div class="items">
|
|
<div class="item content">
|
|
<%= render_md(@post.content).html_safe %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="comments">
|
|
<h3><%= "#{pluralize(@post.comments.length, 'comment')}." %></h3>
|
|
<% @post.comments.each do |c| %>
|
|
<%= render "comments/comment", c: c %>
|
|
<% end %>
|
|
<%= render "comments/new" %>
|
|
</div> |