This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/app/views/comments/_comment.html.erb
2014-05-02 05:17:21 +02:00

15 lines
802 B
Plaintext

<div class="item-group with-avatar comment" id="comment-<%= c.id %>">
<div class="header <%= "op" if c.author.is?(c.blogpost.author) %>">
<%= link_to(c.author.avatar(64), c.author, title: c.author.ign) %>
<%= render partial: "users/username", locals: { user: c.author } %>
<%= link_to "#comment-#{c.id}" do %><time title="<%= c.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= c.created_at.to_datetime.rfc3339 %>"><%= c.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
<%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c), class: "editlink" if (mod? || c.author.is?(current_user)) %>
<div class="clear-right"></div>
</div>
<div class="items">
<div class="item content">
<%= render_mini_md(c.content).html_safe %>
</div>
</div>
</div>