You can Create/Update posts of locked topics
This commit is contained in:
@@ -43,9 +43,11 @@
|
|||||||
<a name="<%= post.id %>"> <%= link_to ("#"+ i.to_s ), post %> </a>
|
<a name="<%= post.id %>"> <%= link_to ("#"+ i.to_s ), post %> </a>
|
||||||
Posted <%=l post.created_at %></span>
|
Posted <%=l post.created_at %></span>
|
||||||
<span class="right controls">
|
<span class="right controls">
|
||||||
<%= link_to "Reply", new_topic_post_path(@topic) if can? :create, @topic.posts.new %>
|
<% if !@topic.locked %>
|
||||||
<%= link_to "Quote", new_topic_post_path(@topic, :quote => post) if can? :create, @topic.posts.new %>
|
<%= link_to "Reply", new_topic_post_path(@topic) if can? :create, @topic.posts.new%>
|
||||||
<%= link_to "Edit", edit_post_path(post) if can? :update, post %>
|
<%= link_to "Quote", new_topic_post_path(@topic, :quote => post) if can? :create, @topic.posts.new %>
|
||||||
|
<%= link_to "Edit", edit_post_path(post) if can? :update, post %>
|
||||||
|
<% end %>
|
||||||
<%= link_to "Delete", post, :confirm => "Are you sure?", :method => :delete if can? :destroy, post %>
|
<%= link_to "Delete", post, :confirm => "Are you sure?", :method => :delete if can? :destroy, post %>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user