%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %>
<%= stylesheet_link_tag "default" %>
<%= javascript_include_tag "application" %>
<%= Danbooru.config.custom_html_header_content %>
<%= yield :html_header_content %>
<% if flash[:notice] %>
<%= h flash[:notice] %>
<% else %>
<% end %>
<% if @current_user.has_mail? %>
<%= link_to "You have mail", dmails_path %>
<% end %>
<% if !@current_user.is_privileged? %>
<%= link_to "Upgrade your account for only $20", users_help_path %>
<%= link_to_function "No thanks", "$('upgrade-account').hide(); Cookie.put('hide-upgrade-account', '1', 7)", :id => "hide-upgrade-account-link" %>
<% end %>
<% if @current_user.is_banned? %>
You have been banned.
<% if @current_user.ban %>
Reason: <%= h @current_user.ban.reason %>.
Expires: <%= @current_user.ban.expires_at.strftime('%Y-%m-%d') %>
<% end %>
<% end %>
<%= yield :layout %>
<%= yield :page_footer_content %>