63 lines
2.3 KiB
Plaintext
63 lines
2.3 KiB
Plaintext
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title><%= yield :page_title %></title>
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
|
<link rel="top" title="<%= Danbooru.config.app_name %>" href="/">
|
|
<%= csrf_meta_tag %>
|
|
<meta name="current-user-name" content="<%= CurrentUser.name %>">
|
|
<meta name="current-user-id" content="<%= CurrentUser.id %>">
|
|
<meta name="user-comment-threshold" content="<%= CurrentUser.comment_threshold %>">
|
|
<% unless CurrentUser.user.blacklisted_tags.blank? %>
|
|
<meta name="blacklisted-tags" content="<%= CurrentUser.user.blacklisted_tags %>">
|
|
<% end %>
|
|
<% if flash[:notice] =~ /error/ %>
|
|
<meta name="errors" content="true">
|
|
<% end %>
|
|
<meta name="default-image-size" content="<%= CurrentUser.user.default_image_size %>">
|
|
<%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %>
|
|
<%= stylesheet_link_tag "application", :media => "screen" %>
|
|
<%= stylesheet_link_tag "mobile", :media => "only screen and (max-width: 480px), only screen and (max-device-width: 480px)" %>
|
|
<%= javascript_include_tag "application" %>
|
|
<%= Danbooru.config.custom_html_header_content %>
|
|
<%= yield :html_header %>
|
|
</head>
|
|
<body>
|
|
<header id="top">
|
|
<%= render "news_updates/listing" %>
|
|
|
|
<h1><%= link_to Danbooru.config.app_name, "/" %></h1>
|
|
<nav>
|
|
<%= render "layouts/main_links" %>
|
|
<%= yield :secondary_links %>
|
|
</nav>
|
|
|
|
<%= render "layouts/more_links" %>
|
|
</header>
|
|
|
|
<div id="page">
|
|
<% 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 flash[:notice] -%>
|
|
<div class="ui-corner-all ui-state-highlight" id="notice"><%= flash[:notice] %></div>
|
|
<%- else -%>
|
|
<div class="ui-corner-all ui-state-highlight" id="notice" style="display: none;"></div>
|
|
<%- end -%>
|
|
|
|
<%= yield :layout %>
|
|
</div>
|
|
|
|
<footer>
|
|
<%= yield :page_footer_content %>
|
|
</footer>
|
|
|
|
<%= render "static/footer" %>
|
|
</body>
|
|
</html>
|