<% 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

<%= render "posts/partials/show/information", :post => @post %>

Options

<%= render "posts/partials/show/options", :post => @post %>

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 %> <%= render "posts/partials/show/notices", :post => @post %> <%= content_tag(:section, class: "image-container note-container", **PostPreviewComponent.new(post: @post).data_attributes) do -%> <%= render "posts/partials/show/embedded", post: @post %>
<% end -%> <% if policy(Favorite).create? %> <%= content_tag(:div, class: "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 %> <%= post_view_count_js %> <% 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 %>