<%= csrf_meta_tag %> <% unless CurrentUser.user.blacklisted_tags.blank? %> "> <% end %> <% if flash[:notice] =~ /error/ %> <% end %> <%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %> <%= stylesheet_link_tag "application", :media => "screen" %> <%= 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_privileged? && cookies[:hide_upgrade_account_notice].blank? && params[:action] != "upgrade_information" %> <%= render "users/upgrade_notice" %> <% end %> <% if !CurrentUser.is_privileged? && CurrentUser.user.created_at > 2.weeks.ago %> <%= render "users/tos" %> <% end %> <%- if flash[:notice] -%>
<%= flash[:notice] %>
<%- else -%> <%- end -%> <%= yield :layout %>
<%= render "static/footer" %>