Cleaned up Posts#show
This commit is contained in:
@@ -1,15 +1,7 @@
|
|||||||
<div class="right controls"><%= link_to "Back to Forum", forum_path(@topic.forum) %></div>
|
|
||||||
<div class="module">
|
<div class="module">
|
||||||
<div class="module_header">
|
<div class="module_header">
|
||||||
<%= link_to @topic.title, topic_path(@topic) %>
|
<%= link_to @topic.title, topic_path(@topic) %>
|
||||||
<span class="right controls">
|
<span class="right controls">
|
||||||
<!--
|
|
||||||
<%= link_to "Edit", edit_topic_path(@topic) if can? :manage, @topic %>
|
|
||||||
<%= link_to "Delete", @topic, :confirm => "Are you sure?", :method => :delete if can? :manage, @topic %>
|
|
||||||
<%= link_to @topic.sticky ? "Unstick" : "Sticky", {:controller => 'topics', :action => 'update', :topic => {:sticky => @topic.sticky ? "false" : "true" }}, :method => :put if can? :moderate, @topic %>
|
|
||||||
<%= link_to @topic.locked ? "Unlock" : "Lock", {:controller => 'topics', :action => 'update', :topic => {:locked => @topic.locked ? "false" : "true" }}, :method => :put if can? :moderate, @topic %>
|
|
||||||
|
|
||||||
-->
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -30,11 +22,7 @@
|
|||||||
Posted <%=l @post.created_at %>
|
Posted <%=l @post.created_at %>
|
||||||
</span>
|
</span>
|
||||||
<span class="right controls">
|
<span class="right controls">
|
||||||
<!--
|
|
||||||
<%= link_to "Reply", new_topic_post_path(@topic) if can? :create, @topic.posts.new %>
|
|
||||||
<%= 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 %>
|
<%= link_to "Edit", edit_post_path(@post) if can? :update, @post %>
|
||||||
-->
|
|
||||||
<%= 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