posts: fixup for b4a67331c.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<% content_for(:sidebar) do %>
|
<% content_for(:sidebar) do %>
|
||||||
<%= render "posts/partials/common/search", :path => posts_path, :tags => params[:tags], :tags_dom_id => "tags" %>
|
<%= render "posts/partials/common/search", :path => posts_path, :tags => params[:tags], :tags_dom_id => "tags" %>
|
||||||
|
|
||||||
|
<% unless @post_set.artist.present? && @post_set.artist.is_banned? && !CurrentUser.user.is_approver? %>
|
||||||
<% if policy(Post).can_use_mode_menu? %>
|
<% if policy(Post).can_use_mode_menu? %>
|
||||||
<section id="mode-box">
|
<section id="mode-box">
|
||||||
<h2>Mode</h2>
|
<h2>Mode</h2>
|
||||||
@@ -56,13 +57,16 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% content_for(:content) do %>
|
<% content_for(:content) do %>
|
||||||
<menu id="post-sections" class="flex">
|
<menu id="post-sections" class="flex">
|
||||||
<li class="flex-grow-1 space-x-2">
|
<li class="flex-grow-1 space-x-2">
|
||||||
<a href="#" id="show-posts-link" class="active">Posts</a>
|
<a href="#" id="show-posts-link" class="active">Posts</a>
|
||||||
|
|
||||||
<% if @post_set.artist.present? %>
|
<% if @post_set.artist.present? && @post_set.artist.is_banned? && !CurrentUser.user.is_approver? %>
|
||||||
|
<%# no-op %>
|
||||||
|
<% elsif @post_set.artist.present? %>
|
||||||
<%= link_to "Artist", artist_path(@post_set.artist), id: "show-excerpt-link", class: "artist-excerpt-link" %>
|
<%= link_to "Artist", artist_path(@post_set.artist), id: "show-excerpt-link", class: "artist-excerpt-link" %>
|
||||||
<% elsif @post_set.tag&.artist? %>
|
<% elsif @post_set.tag&.artist? %>
|
||||||
<%= link_to "Artist", new_artist_path(artist: { name: @post_set.tag.name }), id: "show-excerpt-link", class: "artist-excerpt-link", rel: "nofollow" %>
|
<%= link_to "Artist", new_artist_path(artist: { name: @post_set.tag.name }), id: "show-excerpt-link", class: "artist-excerpt-link", rel: "nofollow" %>
|
||||||
@@ -173,7 +177,7 @@
|
|||||||
<% if @post_set.hidden_posts.present? %>
|
<% if @post_set.hidden_posts.present? %>
|
||||||
<div class="fineprint hidden-posts-notice">
|
<div class="fineprint hidden-posts-notice">
|
||||||
<% if @post_set.banned_posts.size == @post_set.posts.size %>
|
<% if @post_set.banned_posts.size == @post_set.posts.size %>
|
||||||
This page was removed from this page at the artist's request (<%= link_to_wiki "learn more", "banned_artist" %>).<br>
|
This page was removed at the artist's request (<%= link_to_wiki "learn more", "banned_artist" %>).<br>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @post_set.censored_posts.present? %>
|
<% if @post_set.censored_posts.present? %>
|
||||||
|
|||||||
Reference in New Issue
Block a user