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