<%= render_meta_links @current_item if @current_item.respond_to?(:paginate) %> <%= tag.link rel: "canonical", href: canonical_url %> <%= tag.link rel: "search", type: "application/opensearchdescription+xml", href: opensearch_url(format: :xml, version: 2), title: "Search posts" %> <%= csrf_meta_tag %> <% unless CurrentUser.enable_desktop_mode? %> <% end %> <% if CurrentUser.user.blacklisted_tags.present? %> "> <% end %> <%= tag.meta name: "autocomplete-tag-prefixes", content: AutocompleteService::TAG_PREFIXES.to_json %> <%# XXX hack to only load Ruffle on Flash posts %> <% if controller_name == "posts" && action_name == "show" && @post&.is_flash? %> <%= javascript_pack_tag "application", "alpine", "flash", defer: false %> <% else %> <%= javascript_pack_tag "application", "alpine", defer: false %> <% end %> <%= 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)) %> <% end %> <% if current_page?(root_url) %> <%= json_ld_website_data %> <% 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 %> <%= tag.meta name: "theme-color", content: "hsl(213, 100%, 50%)" %> <%= yield :html_header %> <%= raw Danbooru.config.custom_html_header_content %> <%= tag.body **body_attributes(CurrentUser.user, params, @current_item, @exception) do %> <% if NewsUpdate.recent.present? %> <% end %>
<%= link_to image_pack_tag("static/danbooru-logo-128x128.png"), root_path, id: "app-logo" %> <%= link_to Danbooru.config.app_name, root_path, id: "app-name" %>
<%= menu_icon(id: "maintoggle-on") %> <%= close_icon(id: "maintoggle-off", style: "display: none;") %>
<% if CurrentUser.user.is_restricted? && (params[:controller] == "users" || cookies[:hide_verify_account_notice].blank?) %>

Your account is restricted.

You must verify your account because you signed up from a proxy or a VPN. <%= link_to "Verify your account now", verify_user_email_path(CurrentUser.user) %>.
<%= link_to "Close this", "#", id: "hide-verify-account-notice" %>
<% end %> <% if Danbooru.config.is_promotion? && cookies[:hide_winter_sale_notice].blank? %>
<% file = %w[provgift.png kemogift.png padoru.gif ablobgift.gif].sample %> <%= tag.img src: "/images/#{file}", width: 32, height: 32 %> <%= link_to "Danbooru Winter Sale", forum_topic_path(Danbooru.config.winter_sale_forum_topic_id) %> ends <%= time_ago_in_words_tagged(Danbooru.config.winter_sale_end_date) %>!
<%= link_to "Get 25% off Gold", new_user_upgrade_path %>
(<%= link_to "hide", "#", id: "hide-promotion-notice" %>)
<% elsif !CurrentUser.is_anonymous? && !CurrentUser.is_gold? && !CurrentUser.user.is_banned? && cookies[:hide_upgrade_account_notice].blank? && params[:action] != "upgrade_information" %> <%= render "users/upgrade_notice" %> <% end %> <% if CurrentUser.user.is_banned? %>

You have been banned <%= humanized_duration CurrentUser.user.active_ban.duration %>

Reason: <%= format_text CurrentUser.user.active_ban.reason, inline: true %>
<% end %> <% if params[:controller] != "dmails" && has_unread_dmails?(CurrentUser.user) %> <%= render "users/dmail_notice" %> <% end %> <% if !CurrentUser.user.is_anonymous? && CurrentUser.user.name_invalid? %>

Action required

You must <%= link_to "change your username", new_user_name_change_request_path %> to continue using <%= Danbooru.config.canonical_app_name %>.
<% end %>
"> <%= format_text(flash[:notice], inline: true) %>. close
<%= yield :layout %>
<%# Order matters here; items at the bottom of the list appear on top of earlier items %>
<% end %>