posts/show: make post history pages visible to all.

This commit is contained in:
evazion
2019-09-08 23:28:02 -05:00
parent 5729d92c8e
commit b202985eaa
2 changed files with 11 additions and 15 deletions

View File

@@ -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

View File

@@ -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">