app/views/layouts/trestle/auth.html.erb in trestle-auth-0.2.5 vs app/views/layouts/trestle/auth.html.erb in trestle-auth-0.3.0
- old
+ new
@@ -3,27 +3,30 @@
<head>
<meta charset='utf-8'>
<meta content='width=device-width, initial-scale=1' name='viewport'>
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
- <meta content='no-cache' name='turbolinks-cache-control'>
+ <% if Trestle.config.turbolinks %>
+ <meta content='no-cache' name='turbolinks-cache-control'>
+ <% end %>
<%= csrf_meta_tags %>
<title><%= Trestle.config.site_title %></title>
+ <%= stylesheet_link_tag "trestle/admin", 'data-turbolinks-track': 'reload' %>
+ <%= stylesheet_link_tag "trestle/theme", 'data-turbolinks-track': 'reload' if Trestle.config.theme %>
+ <%= stylesheet_link_tag "trestle/custom", 'data-turbolinks-track': 'reload' %>
+
<%= stylesheet_link_tag "trestle/auth", 'data-turbolinks-track': 'reload' %>
- <%= javascript_include_tag "turbolinks" if defined?(Turbolinks) %>
- <%= javascript_include_tag "trestle/auth", 'data-turbolinks-track': 'reload' %>
+ <%= javascript_include_tag "turbolinks" if Trestle.config.turbolinks %>
+
+ <%= hook "auth.head" %>
</head>
- <body>
+ <body class="auth-body theme-bg-dark">
<main class="container">
- <header class="auth-header">
- <h1><%= trestle_auth_title %></h1>
- </header>
-
<%= yield %>
</main>
</body>
</html>