<% page_title @post.presenter.humanized_essential_tag_string %> <% meta_description "View this #{@post.image_width}x#{@post.image_height} #{number_to_human_size(@post.file_size)} image" %> <% canonical_url post_url(@post, host: Danbooru.config.hostname) %> <% atom_feed_tag "Comments for post ##{@post.id}", comments_url(:atom, search: { post_id: @post.id }) %> <%= render "posts/partials/common/secondary_links" %> <% content_for(:sidebar) do %> <%= render "posts/partials/common/search", :path => posts_path, :tags => params[:q], :tags_dom_id => "tags" %> <%= render "posts/partials/index/blacklist" %>
<%= render_categorized_tag_list(@post, current_query: params[:q], show_extra_links: policy(@post).show_extra_links?) %>

Information

Options

History

<% end %> <% content_for(:content) do %> <% if !CurrentUser.user.new_post_navigation_layout %> <%= render_post_navbar(@post, current_user: CurrentUser.user, search: params[:q]) %> <% end %> <% if @post.is_banned? %>
The artist requested removal of this page
<% end %> <% if @post.in_modqueue? %>
<% if @post.is_pending? %> This post is pending approval. (<%= link_to_wiki "learn more", "about:mod_queue" %>) <% elsif @post.is_flagged? %> This post was flagged and is pending approval (<%= link_to_wiki "learn more", "howto:flag" %>) <%= render "post_flags/reasons", flag: @post.flags.select(&:pending?).last %> <% elsif @post.is_appealed? %> This post was appealed and is pending approval (<%= link_to_wiki "learn more", "about:mod_queue" %>) <%= render "post_appeals/reasons", appeal: @post.appeals.select(&:pending?).last %> <% end %> <%= render "post_disapprovals/counts", disapprovals: @post.disapprovals.order(id: :asc), post: @post %> <% if CurrentUser.user.is_approver? %> <%= render "modqueue/quick_mod", post: @post %> <%= render "post_disapprovals/detailed_rejection_dialog" %> <% end %>
<% elsif @post.is_deleted? %>
<% if @post.flags.succeeded.last.present? %>

This post was deleted for the following reason:

<%= render "post_flags/reasons", flag: @post.flags.succeeded.last %> <% else %>

This post was deleted

<% end %> <%= render "post_disapprovals/counts", disapprovals: @post.disapprovals.order(id: :asc), post: @post %> <% if CurrentUser.id == @post.uploader_id %>

If you don't understand why your upload was deleted, you can ask for advice in the Upload Feedback Thread on the forum.

<% end %>
<% end %> <% if @post.parent.present? %>
<%= render "posts/partials/show/parent_notice", parent: @post.parent, children: @sibling_posts.to_a %>
<% end %> <% if @post.has_visible_children? %>
<%= render "posts/partials/show/child_notice", parent: @post, children: @child_posts.to_a %>
<% end %> <% if policy(@post).visible? && @post.has_large? && !@post.is_ugoira? && @post.resize_percentage.floor < 100 %>
Resized to <%= number_to_percentage @post.resize_percentage.floor, precision: 0 %> of original (<%= link_to "view original", @post.tagged_file_url, class: "image-view-original-link" %>)
<% end %> <%= tag.section class: ["image-container", "note-container", ("danbirthday" if is_danbirthday?(@post))], **image_container_data_attributes(@post, CurrentUser.user) do -%> <% if @post.banblocked? -%>

The artist requested removal of this image.

<% elsif @post.levelblocked? -%>

<%= link_to "You need a gold account to see this image", new_user_upgrade_path %>.

<% elsif @post.safeblocked? -%>

This image is unavailable on <%= Danbooru.config.app_name %>. Go to <%= link_to "Danbooru", "https://danbooru.donmai.us" %> or disable safe mode to view (<%= link_to_wiki "learn more", "help:safe_mode" %>).

<% elsif @post.is_flash? -%> <%= render("posts/partials/show/flash", post: @post) -%> <% elsif @post.is_video? -%> <%= render("posts/partials/show/video", post: @post) -%> <% elsif @post.is_ugoira? -%> <%= render("posts/partials/show/ugoira", post: @post) -%> <% elsif !@post.is_image? -%> <%= render("posts/partials/show/download", post: @post) -%> <% elsif @post.is_image? -%> <%= tag.source media: "(max-width: 660px)", srcset: @post.tagged_large_file_url %> <%= tag.img width: @post.image_width_for(CurrentUser.user), height: @post.image_height_for(CurrentUser.user), id: "image", class: "fit-width", alt: @post.presenter.humanized_essential_tag_string, src: @post.file_url_for(CurrentUser.user) %> <% end %>
<% end -%> <% if policy(Favorite).create? %> <%= content_tag(:div, class: "mb-2 fav-buttons fav-buttons-#{@post.favorited_by?(CurrentUser.user)}") do %> <%= form_tag(favorites_path(post_id: @post.id), method: "post", id: "add-fav-button", "data-remote": true) do %> <%= button_tag empty_heart_icon, class: "ui-button ui-widget ui-corner-all", "data-disable-with": spinner_icon %> <% end %> <%= form_tag(favorite_path(@post.id), method: "delete", id: "remove-fav-button", "data-remote": true) do %> <%= button_tag solid_heart_icon, class: "ui-button ui-widget ui-corner-all", "data-disable-with": spinner_icon %> <% end %> <% end %> <% end %>
<%= edit_form_for(@post, url: mark_as_translated_post_path(@post), method: :put) do |f| %> <%= f.input :tags_query, as: :hidden, input_html: { id: nil, name: "tags_query", value: params[:q] } %> <%= f.input :pool_id, as: :hidden, input_html: { id: nil, name: "pool_id", value: params[:pool_id] } %> <%= f.input :favgroup_id, as: :hidden, input_html: { id: nil, name: "favgroup_id", value: params[:favgroup_id] } %>
<%= f.input :check_translation, as: :boolean, input_html: { checked: @post.has_tag?("check_translation") } %> <%= f.input :partially_translated, as: :boolean, input_html: { checked: @post.has_tag?("partially_translated") } %>
<%= f.submit "Mark as translated" %> <% end %>
<% if @post.artist_commentary && @post.artist_commentary.any_field_present? %>
<%= render "artist_commentaries/show", :artist_commentary => @post.artist_commentary %>
<% end %> <% if CurrentUser.user.new_post_navigation_layout %> <%= render_post_navbar(@post, current_user: CurrentUser.user, search: params[:q]) %> <% end %>
  • Comments
  • <% if RecommenderService.available_for_post?(@post) %>
  • Recommended
  • <% end %> <% if policy(@post).update? %>
  • Edit
  • <% end %>
    <% if RecommenderService.available_for_post?(@post) %> <% end %>
    <%= render_comment_section(@post, current_user: CurrentUser.user) %>
    <% if policy(@post).update? %> <% end %> <% end %> <% if policy(Pool).create? %> <% end %> <% if policy(ArtistCommentary).create_or_update? %> <% end %> <% if policy(FavoriteGroup).create? %> <% end %> <% if reportbooru_enabled? %> <% end %> <% content_for(:html_header) do %> <% if policy(@post).visible? %> <%= tag.meta property: "og:image", content: @post.open_graph_image_url %> <% if @post.is_video? %> <%= json_ld_video_data(@post) %> <% end %> <% end %> <% if @post.twitter_card_supported? %> <% if policy(@post).visible? %> <%= tag.meta name: "twitter:image", content: @post.open_graph_image_url %> <% end %> <% end %> <% if @post.rating == "e" %> <% end %> <% end %>