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-04-28 03:01:33 +02:00

14 lines
675 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(image_tag(c.author.avatar_url(64), class: "avatar"), c.author, title: c.author.ign) %>
<%= render partial: "users/username", locals: { user: c.author } %>
<time><%= link_to c.created_at.strftime("%e. %b %Y, %H:%M"), "#comment-#{c.id}" %></time>
<%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c), class: "editlink" if (mod? || c.author.is?(current_user)) %>
</div>
<div class="items">
<div class="item content">
<%= render_mini_md(c.content).html_safe %>
</div>
</div>
</div>