mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 22:03:53 +08:00
eb52abf076
This change is to allow to add a node at the top of body. This is currently done through DOM in a plugin which is causing a full Recalculate Style.
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="<%= html_lang %>">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><%= content_for?(:title) ? yield(:title) : SiteSetting.title %></title>
|
|
<meta name="description" content="">
|
|
<%= render partial: "layouts/head" %>
|
|
<%= render partial: "common/discourse_stylesheet" %>
|
|
<%= discourse_csrf_tags %>
|
|
|
|
<%- unless customization_disabled? %>
|
|
<%= theme_lookup("head_tag") %>
|
|
<%- end %>
|
|
|
|
<%= yield(:no_ember_head) %>
|
|
|
|
<%- if allow_plugins? %>
|
|
<%= build_plugin_html 'server:before-head-close' %>
|
|
<%- end -%>
|
|
</head>
|
|
<body class="no-ember <%= @custom_body_class %>">
|
|
<%- if allow_plugins? %>
|
|
<%= build_plugin_html 'server:after-body-open' %>
|
|
<%- end -%>
|
|
|
|
<%- unless customization_disabled? %>
|
|
<%= theme_lookup("header") %>
|
|
<%- end %>
|
|
|
|
<%- if allow_plugins? %>
|
|
<%= build_plugin_html 'server:header' %>
|
|
<%- end %>
|
|
|
|
<section id='main'>
|
|
<%= render partial: 'header', locals: { hide_auth_buttons: local_assigns[:hide_auth_buttons] } %>
|
|
<div id="main-outlet" class="<%= @container_class ? @container_class : 'wrap' %>">
|
|
<%= yield %>
|
|
</div>
|
|
</section>
|
|
|
|
<%- unless customization_disabled? %>
|
|
<%= theme_lookup("footer") %>
|
|
<%= theme_lookup("body_tag") %>
|
|
<%- end %>
|
|
|
|
<%- if allow_plugins? %>
|
|
<%= build_plugin_html 'no-client:footer' %>
|
|
<%= build_plugin_html 'server:before-body-close' %>
|
|
<%- end %>
|
|
</body>
|
|
</html>
|