app/views/layouts/trestle/auth.html.erb in trestle-auth-0.4.4 vs app/views/layouts/trestle/auth.html.erb in trestle-auth-0.5.0.pre
- old
+ new
@@ -3,29 +3,32 @@
<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'>
- <% if Trestle.config.turbolinks %>
- <meta content='no-cache' name='turbolinks-cache-control'>
- <% end %>
+ <meta name='turbo-cache-control' content='no-cache'>
+ <meta name="turbo-prefetch" content="false" />
+ <meta name="turbo-root" content="<%= Trestle.config.path %>">
<%= 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' %>
+ <%= favicon_link_tag Trestle.config.favicon if Trestle.config.favicon %>
- <%= stylesheet_link_tag "trestle/auth", 'data-turbolinks-track': 'reload' %>
+ <%= stylesheet_link_tag "trestle/admin", 'data-turbo-track': 'reload' %>
+ <%= stylesheet_link_tag "trestle/icons/font-awesome", 'data-turbo-track': 'reload' if defined?(Sprockets) %>
- <%= javascript_include_tag "turbolinks" if Trestle.config.turbolinks %>
+ <%= stylesheet_link_tag "trestle/custom", 'data-turbo-track': 'reload' %>
+ <%= stylesheet_link_tag "trestle/auth", 'data-turbo-track': 'reload' %>
+
+ <%= render "trestle/theme" %>
+
<%= hook "auth.head" %>
</head>
- <body class="auth-body theme-bg-dark">
+ <body class="auth-body theme-bg">
<main class="container">
<%= yield %>
</main>
</body>
</html>