This commit is contained in:
jomo
2013-10-20 18:19:27 +02:00
parent db1fc7c4ef
commit 7e20ab8de7
6 changed files with 32 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<div class="comment <%= "author" if c.author == @post.author %>" id="comment-<%= c.id %>">
<span class="comment-info"><%= link_to c.author.name, c.author %> <%= c.created_at.strftime("%e. %b %Y, %H:%m") %>
<span class="comment-info"><%= link_user c.author %> <%= c.created_at.strftime("%e. %b %Y, %H:%m") %>
<% if mod? || c.author.is?(current_user) %>
<div class="editlink"><%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c) %></div>
<% end %>