<%= csrf_meta_tag %> <% unless CurrentUser.disable_responsive_mode? %> <% end %> <% if CurrentUser.user.blacklisted_tags.present? %> "> <% end %> <% if flash[:notice] =~ /error/i %> <% end %> <%= tag.meta name: "disable-mobile-gestures", content: CurrentUser.disable_mobile_gestures? %> <%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %> <%= javascript_pack_tag "application" %> <%= stylesheet_pack_tag "application" %> <% if CurrentUser.user.custom_style.present? %> <%= stylesheet_link_tag custom_style_users_path(md5: Digest::MD5.hexdigest(CurrentUser.user.custom_style)), media: "screen" %> <% end %> <% if Danbooru.config.twitter_site %> <% end %> <% if request.domain =~ /donmai\.us/ %> <% else %> <% end %> <%= yield :html_header %> <%= raw Danbooru.config.custom_html_header_content %> <%= tag.body **body_attributes(CurrentUser.user) 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 CurrentUser.has_mail? && CurrentUser.dmails.unread.first.present? && (cookies[:hide_dmail_notice].blank? || cookies[:hide_dmail_notice].to_i < CurrentUser.dmails.unread.first.id) %> <%= render "users/dmail_notice" %> <% end %> <% if CurrentUser.user.can_approve_posts? %> <%= render "moderator/post/queues/notice" %> <% end %>
"> <%= format_text(flash[:notice], inline: true) %>. close
<%= yield :layout %>
<%= render "static/footer" %> <% end %>