require membership to see post history
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
class PostVersionsController < ApplicationController
|
class PostVersionsController < ApplicationController
|
||||||
|
before_filter :member_only
|
||||||
respond_to :html, :xml, :json
|
respond_to :html, :xml, :json
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|||||||
@@ -19,18 +19,19 @@
|
|||||||
<h1>Options</h1>
|
<h1>Options</h1>
|
||||||
<%= render "posts/partials/show/options", :post => @post %>
|
<%= render "posts/partials/show/options", :post => @post %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section id="post-history">
|
||||||
|
<h1>History</h1>
|
||||||
|
<ul>
|
||||||
|
<li><%= fast_link_to "Tags", post_versions_path(:search => {:post_id => @post.id}) %></li>
|
||||||
|
<li><%= fast_link_to "Notes", note_versions_path(:search => {:post_id => @post.id}) %></li>
|
||||||
|
<li><%= fast_link_to "Flags & Appeals", post_events_path(@post.id) %></li>
|
||||||
|
<li><%= fast_link_to "Commentary", artist_commentary_versions_path(:search => {:post_id => @post.id}) %></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<section id="post-history">
|
|
||||||
<h1>History</h1>
|
|
||||||
<ul>
|
|
||||||
<li><%= fast_link_to "Tags", post_versions_path(:search => {:post_id => @post.id}) %></li>
|
|
||||||
<li><%= fast_link_to "Notes", note_versions_path(:search => {:post_id => @post.id}) %></li>
|
|
||||||
<li><%= fast_link_to "Flags & Appeals", post_events_path(@post.id) %></li>
|
|
||||||
<li><%= fast_link_to "Commentary", artist_commentary_versions_path(:search => {:post_id => @post.id}) %></li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<section id="content">
|
<section id="content">
|
||||||
|
|||||||
Reference in New Issue
Block a user