fix edit link on replies
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<%= render partial: "users/username", locals: { user: reply.author } %>
|
<%= render partial: "users/username", locals: { user: reply.author } %>
|
||||||
<%= link_to "#reply-#{reply.id}" do %><time title="<%= reply.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= reply.created_at.to_datetime.rfc3339 %>"><%= reply.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
<%= link_to "#reply-#{reply.id}" do %><time title="<%= reply.created_at.strftime("%e %b %Y, %H:%M") %>" datetime="<%= reply.created_at.to_datetime.rfc3339 %>"><%= reply.created_at.strftime("%e %b %Y, %H:%M") %></time><% end %>
|
||||||
|
|
||||||
<%= link_to "edit", edit_forumthread_threadreply_path(reply.thread, reply), class: "editlink" if mod? || reply.thread.author.is?(current_user) %>
|
<%= link_to "edit", edit_forumthread_threadreply_path(reply.thread, reply), class: "editlink" if mod? || reply.author.is?(current_user) %>
|
||||||
<div class="clear-right"></div>
|
<div class="clear-right"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="items">
|
<div class="items">
|
||||||
|
|||||||
Reference in New Issue
Block a user