<%= render "meta_links", collection: @current_item %> <%= csrf_meta_tag %> <% unless CurrentUser.enable_desktop_mode? %> <% end %> <% if CurrentUser.user.blacklisted_tags.present? %> "> <% end %> <%= javascript_pack_tag "application" %> <%= stylesheet_pack_tag "application" %> <% if CurrentUser.user.custom_style.present? && params.fetch(:css, "true").truthy? %> <%= stylesheet_link_tag custom_style_users_path(md5: Digest::MD5.hexdigest(CurrentUser.user.custom_style)), media: "screen" %> <% end %> <% if Danbooru.config.twitter_username.present? %> <% end %> <%= tag.meta name: "description", content: meta_description %> <%= tag.meta property: "og:type", content: "website" %> <%= tag.meta property: "og:site_name", content: Danbooru.config.app_name %> <%= tag.meta property: "og:title", content: page_title %> <%= tag.meta property: "og:description", content: meta_description %> <%= tag.meta property: "og:url", content: request.original_url %> <% if Danbooru.config.twitter_username.present? %> <%= tag.meta name: "twitter:site", content: "@#{Danbooru.config.twitter_username}" %> <% end %> <%= tag.meta name: "twitter:title", content: page_title %> <%= tag.meta name: "twitter:description", content: meta_description %> <%= tag.meta name: "git-hash", content: Rails.application.config.x.git_hash %> <%= yield :html_header %> <%= raw Danbooru.config.custom_html_header_content %> <%= tag.body **body_attributes(CurrentUser.user, params, @current_item) do %> <%= render "news_updates/listing" %>

<%= link_to Danbooru.config.app_name, "/" %>

<% if !CurrentUser.is_anonymous? && !CurrentUser.is_gold? && cookies[:hide_upgrade_account_notice].blank? && params[:action] != "upgrade_information" %> <%= render "users/upgrade_notice" %> <% end %> <% if CurrentUser.user.is_banned? %> <%= render "users/ban_notice" %> <% end %> <% if params[:controller] != "dmails" && has_unread_dmails?(CurrentUser.user) %> <%= render "users/dmail_notice" %> <% end %>
"> <%= format_text(flash[:notice], inline: true) %>. close
<%= yield :layout %>
<%= render "static/footer" %> <% end %>