<%= csrf_meta_tag %> <% if CurrentUser.user.blacklisted_tags.present? %> "> <% end %> <% if flash[:notice] =~ /error/ %> <% end %> <%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %> <%= stylesheet_link_tag "application", :media => "screen" %> <% if CurrentUser.user.custom_style.present? %> <%= stylesheet_link_tag custom_style_users_path, :media => "screen" %> <% end %> <%= javascript_include_tag "application" %> <%= raw Danbooru.config.custom_html_header_content %> <%= yield :html_header %>
<%= render "news_updates/listing" %>

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

<%= render "layouts/more_links" %>
<% if CurrentUser.is_anonymous? && session[:started_at] && session[:started_at] < 1.minute.ago && cookies[:hide_sign_up_notice].blank? %> <%= render "users/sign_up_notice" %> <% end %> <% 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.dmail_count.present? && CurrentUser.dmails.unread.present? && cookies[:hide_dmail_notice].to_i != CurrentUser.dmails.unread.first.id %> <%= render "users/dmail_notice" %> <% end %> <% if cookies["accepted_tos"].blank? && !CurrentUser.is_gold? %> <%= render "users/tos" %> <% end %>
"> <%= flash[:notice] %> close
<%= yield :layout %>
<%= render "static/footer" %>