<% 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, { id: "image-container" }.merge(PostPresenter.data_attributes(@post))) do -%>
<%= render "posts/partials/show/embedded", post: @post %> <% end -%> <% if CurrentUser.is_member? %> <%= 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 %> <% if @post.artist_commentary && @post.artist_commentary.any_field_present? %>
<%= render "artist_commentaries/show", :artist_commentary => @post.artist_commentary %>
<% end %> <% if @post.presenter.has_nav_links?(self) %> <%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %> <% end %>
  • Comments
  • <% if RecommenderService.available_for_post?(@post) %>
  • Recommended
  • <% end %> <% if CurrentUser.is_member? && @post.visible? %>
  • Edit
  • <% end %>
    <% if RecommenderService.available_for_post?(@post) %> <% end %>
    <% if !CurrentUser.user.is_builder? %>

    Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.

    <% end %> <%= render "comments/partials/index/list", comments: @comments, post: @post, page: :post %>
    <% if CurrentUser.is_member? && @post.visible? %> <% end %>
    <% if CurrentUser.is_member? %> <% end %>
    <%= post_view_count_js %> <% content_for(:page_title) do %> <%= @post.presenter.humanized_essential_tag_string %> - <%= Danbooru.config.app_name %> <% end %> <% content_for(:html_header) do %> <%= tag.meta name: "description", content: "View this #{@post.image_width}x#{@post.image_height} #{number_to_human_size(@post.file_size)} image" %> <%= tag.meta name: "og:title", content: "#{@post.presenter.humanized_essential_tag_string} - #{Danbooru.config.app_name}" %> <% if @post.visible? %> <%= tag.meta name: "og:image", content: @post.open_graph_image_url %> <% end %> <% if Danbooru.config.enable_post_search_counts %> <% end %> <%= tag.meta name: "canonical", content: post_url(@post, host: Danbooru.config.hostname, protocol: "https") %> <%# Twitter properties %> <% if @post.twitter_card_supported? %> <%= tag.meta name: "twitter:site", content: Danbooru.config.twitter_site %> <%= tag.meta name: "twitter:title", content: "#{@post.presenter.humanized_essential_tag_string} - #{Danbooru.config.app_name}" %> <%= tag.meta name: "twitter:description", content: "View this #{@post.image_width}x#{@post.image_height} #{number_to_human_size(@post.file_size)} image" %> <% if @post.visible? %> <%= tag.meta name: "twitter:image", content: @post.open_graph_image_url %> <% end %> <% end %> <% if @post.rating == "e" %> <% end %> <%= tag.meta name: "og:type", content: "website" %> <%= tag.meta name: "og:site", content: Danbooru.config.app_name %> <%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %> <% end %> <%= render "posts/partials/common/secondary_links" %>