more forum stuff
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="comment <%= "author" if c.author == @post.author %>">
|
||||
<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") %>
|
||||
<% if mod? || c.author.is?(current_user) %>
|
||||
<div class="editlink"><%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c) %></div>
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
<%= f.submit "Update Comment", :id => "edit_create_comment", class: "btn blue" %>
|
||||
<% end %>
|
||||
<div id="delete_comment">
|
||||
<%= button_to "Delete comment", [@comment.blogpost, @comment] , :method => "delete", :confirm => "Delete comment forever?", class: "btn red" %>
|
||||
<%= button_to "Delete comment", [@comment.blogpost, @comment] , :method => "delete", :confirm => "Delete comment forever?", class: "btn red right" %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user