posts/show: make post history pages visible to all.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class PostVersionsController < ApplicationController
|
||||
before_action :member_only
|
||||
before_action :member_only, except: [:index, :search]
|
||||
before_action :check_availabililty
|
||||
respond_to :html, :xml, :json
|
||||
|
||||
|
||||
@@ -24,20 +24,16 @@
|
||||
<%= render "posts/partials/show/options", :post => @post %>
|
||||
</section>
|
||||
|
||||
<% if CurrentUser.is_member? %>
|
||||
<section id="post-history">
|
||||
<h1>History</h1>
|
||||
<ul>
|
||||
<li><%= link_to "Tags", post_versions_path(search: { post_id: @post.id }) %></li>
|
||||
<li><%= link_to "Notes", note_versions_path(search: { post_id: @post.id }) %></li>
|
||||
<li><%= link_to "Moderation", post_events_path(@post.id) %></li>
|
||||
<li><%= link_to "Commentary", artist_commentary_versions_path(search: { post_id: @post.id }) %></li>
|
||||
<li><%= link_to "Replacements", post_replacements_path(search: {post_id: @post.id }) %></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<% end %>
|
||||
|
||||
<section id="post-history">
|
||||
<h1>History</h1>
|
||||
<ul>
|
||||
<li><%= link_to "Tags", post_versions_path(search: { post_id: @post.id }) %></li>
|
||||
<li><%= link_to "Notes", note_versions_path(search: { post_id: @post.id }) %></li>
|
||||
<li><%= link_to "Moderation", post_events_path(@post.id) %></li>
|
||||
<li><%= link_to "Commentary", artist_commentary_versions_path(search: { post_id: @post.id }) %></li>
|
||||
<li><%= link_to "Replacements", post_replacements_path(search: {post_id: @post.id }) %></li>
|
||||
</ul>
|
||||
</section>
|
||||
</aside>
|
||||
|
||||
<section id="content">
|
||||
|
||||
Reference in New Issue
Block a user