switch no_js view back to old layout

This commit is contained in:
Jeff Atwood 2015-01-15 12:29:37 -08:00
parent 91e0c0e034
commit 3ab2f105b4
1 changed files with 38 additions and 25 deletions

View File

@ -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" %>
<%= render partial: "common/special_font_face" %>
<%= render partial: "common/discourse_stylesheet" %>
<%= discourse_csrf_tags %>
<%- unless customization_disabled? %> <%- 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>
<body>
<%- unless customization_disabled? %>
<%= SiteCustomization.custom_header(session[:preview_style]) %> <%= SiteCustomization.custom_header(session[:preview_style]) %>
<%- end %> <%- end %>
<header> <section id='main'>
<header class="d-header">
<div class="container">
<div class="contents">
<div class="row">
<div class="title span13">
<a href="/"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></a> <a href="/"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></a>
</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>
</header> </header>
<div id="main-outlet" class="container"> <div id="main-outlet" class="container">
<%= yield %> <%= yield %>
</div> </div>
<footer class="container"> </section>
<p><%= t 'powered_by_html' %></p> </body>
</footer>
</body>
</html> </html>