switch no_js view back to old layout
This commit is contained in:
parent
91e0c0e034
commit
3ab2f105b4
|
@ -1,30 +1,43 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<%= SiteSetting.default_locale %>">
|
<html lang="<%= SiteSetting.default_locale %>">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %></title>
|
<title><%=SiteSetting.title%></title>
|
||||||
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
|
<meta name="description" content="">
|
||||||
<%= render partial: "layouts/head" %>
|
<%= render partial: "layouts/head" %>
|
||||||
<%- unless customization_disabled? %>
|
<%= render partial: "common/special_font_face" %>
|
||||||
|
<%= render partial: "common/discourse_stylesheet" %>
|
||||||
|
<%= discourse_csrf_tags %>
|
||||||
|
|
||||||
|
<%- unless customization_disabled? %>
|
||||||
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<%= yield(:no_js_head) %>
|
<%= yield(:no_js_head) %>
|
||||||
<style>
|
</head>
|
||||||
img { max-width: 100%; width: auto; height: auto; }
|
<body>
|
||||||
</style>
|
<%- unless customization_disabled? %>
|
||||||
</head>
|
<%= SiteCustomization.custom_header(session[:preview_style]) %>
|
||||||
<body>
|
<%- end %>
|
||||||
<%- unless customization_disabled? %>
|
<section id='main'>
|
||||||
<%= SiteCustomization.custom_header(session[:preview_style]) %>
|
<header class="d-header">
|
||||||
<%- end %>
|
<div class="container">
|
||||||
<header>
|
<div class="contents">
|
||||||
<a href="/"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></a>
|
<div class="row">
|
||||||
</header>
|
<div class="title span13">
|
||||||
<div id="main-outlet" class="container">
|
<a href="/"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></a>
|
||||||
<%= yield %>
|
</div>
|
||||||
|
<% unless current_user %>
|
||||||
|
<div class='panel clearfix'>
|
||||||
|
<a href="/login" class='btn btn-primary btn-small'><i class="fa fa-user"></i><%= I18n.t('log_in') %></a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer class="container">
|
</header>
|
||||||
<p><%= t 'powered_by_html' %></p>
|
<div id="main-outlet" class="container">
|
||||||
</footer>
|
<%= yield %>
|
||||||
</body>
|
</div>
|
||||||
|
</section>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue