8 lines
430 B
Plaintext
8 lines
430 B
Plaintext
<div class="comment <%= "author" if c.user == @post.user %>">
|
|
<span class="comment-info"><%= link_to c.user.name, c.user %> <%= c.created_at.strftime("%e. %b %Y, %H:%m") %>
|
|
<% if mod? || current_user == c.user %>
|
|
<div class="editlink"><%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c) %></div>
|
|
<% end %>
|
|
</span>
|
|
<div class="comment-content"><%= h(c.text).gsub("\n", "<br>").html_safe %></div>
|
|
</div> |