<% content_for(:sidebar) do %> <%= render "posts/partials/common/search", :path => posts_path, :tags => params[:tags], :tags_dom_id => "tags" %> <% if policy(Post).can_use_mode_menu? %>

Mode

<% end %> <%= render "posts/partials/index/blacklist" %>

Tags

<%= render_search_tag_list(@post_set.related_tags, current_query: params[:tags], show_extra_links: policy(Post).show_extra_links?, search_params: { show_votes: params[:show_votes], size: params[:size] }) %>

Options

<% end %> <% content_for(:content) do %>
  • Posts <% if @post_set.artist.present? %> <%= link_to "Artist", artist_path(@post_set.artist), id: "show-excerpt-link", class: "artist-excerpt-link" %> <% 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" %> <% elsif @post_set.wiki_page.present? %> <%= link_to "Wiki", wiki_page_path(@post_set.wiki_page), id: "show-excerpt-link", class: "wiki-excerpt-link" %> <% elsif @post_set.pool.present? %> <%= link_to "Pool", pool_path(@post_set.pool), id: "show-excerpt-link", class: "pool-excerpt-link" %> <% elsif @post_set.favgroup.present? %> <%= link_to "Favorite Group", favorite_group_path(@post_set.favgroup), id: "show-excerpt-link", class: "favgroup-excerpt-link" %> <% elsif @post_set.has_blank_wiki? %> <%= link_to "Wiki", new_wiki_page_path(wiki_page: { title: @post_set.tag.name }), id: "show-excerpt-link", class: "blank-wiki-excerpt-link" %> <% end %> Search »
  • <%= render PreviewSizeMenuComponent.new(current_size: @preview_size) %> <%= render PopupMenuComponent.new(classes: "post-preview-options-menu") do |menu| %> <% menu.item do %> <% if @post_set.show_votes %> <%= link_to "Hide scores", posts_path(tags: params[:tags], page: params[:page], limit: params[:limit], show_votes: nil, size: params[:size]), class: "post-preview-hide-votes", rel: "nofollow" %> <% else %> <%= link_to "Show scores", posts_path(tags: params[:tags], page: params[:page], limit: params[:limit], show_votes: true, size: params[:size]), class: "post-preview-show-votes", rel: "nofollow" %> <% end %> <% end %> <% end %>
  • <%= render_post_gallery(@post_set.posts, show_deleted: @post_set.show_deleted?, tags: @post_set.tag_string, show_votes: @post_set.show_votes?, size: @preview_size) do |gallery, posts| %> <% gallery.footer do %> <% if @post_set.hidden_posts.present? %>
    <% 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" %>).
    <% end %> <% if @post_set.censored_posts.present? %> <%= @post_set.censored_posts.size %> post(s) on this page require a <%= link_to "Gold account", new_user_upgrade_path %> to view (<%= link_to_wiki "learn more", "help:censored_tags" %>).
    <% end %> <% if @post_set.safe_posts.present? %> <%= @post_set.safe_posts.size %> post(s) on this page were hidden by safe mode. Go to <%= link_to "Danbooru", "https://danbooru.donmai.us" %> or disable safe mode to view them (<%= link_to_wiki "learn more", "help:user_settings" %>).
    <% end %>
    <% end %> <% if !CurrentUser.user.is_anonymous? && @post_set.tag.present? && @post_set.current_page == 1 %> <% cache("tag-change-notice:#{@post_set.tag.name}", expires_in: 4.hours) do %> <% if @post_set.pending_bulk_update_requests.present? %>

    This tag is being discussed in <%= to_sentence @post_set.pending_bulk_update_requests.map { |bur| link_to "Topic ##{bur.forum_topic_id}: #{bur.forum_topic.title}", bur.forum_post } %>.

    <% end %> <% end %> <% end %> <%= numbered_paginator(posts) %> <% end %> <% end %>
    <% end %>
    <%= render "saved_searches/interface" %>
    <% if params[:tags] =~ /search:/ %> <%= render "saved_searches/secondary_links" %> <% else %> <%= render "posts/partials/common/secondary_links" %> <% end %> <% if reportbooru_enabled? && @post_set.post_query.is_simple_tag? && @post_set.current_page == 1 %> <% if @post_set.post_count == 0 %> <%= missed_post_search_count_js(@post_set.post_query.to_s) %> <% else %> <%= post_search_count_js(@post_set.post_query.to_s) %> <% end %> <% end %> <% content_for(:html_header) do %> <% if @post_set.post_query.is_empty_search? %> <% page_title("#{Danbooru.config.app_name}: Anime Image Board", suffix: nil) %> <% meta_description site_description %> <% atom_feed_tag "Posts", posts_url(format: :atom) %> <% else %> <% page_title(@post_set.page_title) %> <% meta_description @post_set.meta_description %> <% atom_feed_tag "Posts: #{@post_set.page_title}", posts_url(tags: @post_set.tag_string, format: :atom) %> <% end %> <% if params[:tags].blank? && @post_set.current_page == 1 %> <% canonical_url root_url(host: Danbooru.config.hostname) %> <% else %> <% canonical_url posts_url(host: Danbooru.config.hostname, tags: params[:tags], page: params[:page], limit: params[:limit]) %> <% end %> <% noindex if @post_set.hide_from_crawler? %> <% if @post_set.has_explicit? %> <% end %> <% if @post_set.best_post.present? %> <%= tag.meta property: "og:image", content: @post_set.best_post.open_graph_image_url %> <%= tag.meta name: "twitter:image", content: @post_set.best_post.open_graph_image_url %> <%= tag.meta name: "twitter:card", content: "summary_large_image" %> <% end %> <% end %>