% 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" %>
<% 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" %>
<%= @post.presenter.split_tag_list_html(current_query: params[:q], show_extra_links: policy(@post).show_extra_links?) %>
Information
<%= render "posts/partials/show/information", :post => @post %>
Options
<%= render "posts/partials/show/options", :post => @post %>
History
- <%= link_to "Tags", post_versions_path(search: { post_id: @post.id }) %>
- <%= link_to "Pools", pool_versions_path(search: { post_id: @post.id }) %>
- <%= link_to "Notes", note_versions_path(search: { post_id: @post.id }) %>
- <%= link_to "Moderation", post_events_path(@post.id) %>
- <%= link_to "Replacements", post_replacements_path(search: {post_id: @post.id }) %>
<% end %>
<% content_for(:content) do %>
<% if @post.presenter.has_nav_links?(self) %>
<%= render "posts/partials/show/nav_links", :post => @post, :position => "top" %>
<% end %>
<%= render "posts/partials/show/notices", :post => @post %>
<%= content_tag(:section, class: "image-container note-container", **PostPresenter.data_attributes(@post)) do -%>
<%= render "posts/partials/show/embedded", post: @post %>
<% end -%>
<% if policy(Favorite).create? %>
<%= content_tag(:div, class: "fav-buttons fav-buttons-#{@post.is_favorited?}") do %>
<%= form_tag(favorites_path(post_id: @post.id), method: "post", id: "add-fav-button", "data-remote": true) do %>
<%= button_tag tag.i(class: "far fa-heart"), class: "ui-button ui-widget ui-corner-all", "data-disable-with": tag.i(class: "fas fa-spinner fa-spin") %>
<% end %>
<%= form_tag(favorite_path(@post.id), method: "delete", id: "remove-fav-button", "data-remote": true) do %>
<%= button_tag tag.i(class: "fas fa-heart"), class: "ui-button ui-widget ui-corner-all", "data-disable-with": tag.i(class: "fas fa-spinner fa-spin") %>
<% end %>
<% end %>
<% end %>
<%= form_tag(mark_as_translated_post_path(@post), :class => "simple_form", :method => :put) do |f| %>
<%= hidden_field_tag :tags_query, params[:q] %>
<%= hidden_field_tag :pool_id, params[:pool_id] %>
<%= submit_tag "Mark as translated" %>
<% end %>
<% if @post.artist_commentary && @post.artist_commentary.any_field_present? %>
<% end %>
<% if @post.presenter.has_nav_links?(self) %>
<%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %>
<% end %>
<% if RecommenderService.available_for_post?(@post) %>
<% end %>
<% if @post.has_notes? %>
<%= render partial: "notes/note", collection: @post.notes.active %>
<% end %>
<% if policy(@post).update? %>
<%= render "posts/partials/show/edit", :post => @post %>
<% end %>
<% end %>
<% if policy(Pool).create? %>
<%= render "pool_elements/new" %>
<% end %>
<% if policy(ArtistCommentary).create_or_update? %>
<% end %>
<% if policy(FavoriteGroup).create? %>
<%= render "favorite_groups/add_to_favgroup_dialog", :post => @post %>
<% end %>
<%= post_view_count_js %>
<% content_for(:html_header) do %>
<% if policy(@post).visible? %>
<%= tag.meta property: "og:image", content: @post.open_graph_image_url %>
<% end %>
<%= tag.meta name: "canonical", content: post_url(@post, host: Danbooru.config.hostname, protocol: "https") %>
<% 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 %>