app/views/layouts/lookbook/skeleton.html.erb in lookbook-1.3.4 vs app/views/layouts/lookbook/skeleton.html.erb in lookbook-1.4.0
- old
+ new
@@ -4,19 +4,19 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link href="<%= asset_path("/css/lookbook.css") %>" rel="stylesheet">
- <link href="<%= asset_path("/css/themes/#{config.ui_theme}.css") %>" rel="stylesheet">
+ <link href="<%= asset_path("/css/themes/#{@config.ui_theme}.css") %>" rel="stylesheet">
<%- if @theme_overrides.present? %>
<style media="all">
<%== @theme_overrides %>
</style>
<% end %>
- <% if config.ui_favicon == true %>
+ <% if @config.ui_favicon == true %>
<link
rel="icon"
href="data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath d='M96 0v84H0V0h96Z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M71.897 0a1.5 1.5 0 0 1 1.31.769l22.605 40.5a1.5 1.5 0 0 1 0 1.462l-22.605 40.5a1.5 1.5 0 0 1-1.31.769H49.481a1 1 0 0 1-.873-1.487L70.812 42.73a1.5 1.5 0 0 0 0-1.462L48.608 1.487A1 1 0 0 1 49.481 0ZM24.655.564l22.72 40.705a1.5 1.5 0 0 1 0 1.462l-22.72 40.705a1 1 0 0 1-1.746 0L.19 42.73a1.5 1.5 0 0 1 0-1.462L22.91.564a1 1 0 0 1 1.746 0Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23a)'%3E%3Cg clip-path='url(%23b)'%3E%3Cpath fill='<%= url_encode theme.favicon_dark_mode %>' d='M0 0h96v84H0V0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"
media="(prefers-color-scheme: dark)">
<link
@@ -24,22 +24,22 @@
href="data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath d='M96 0v84H0V0h96Z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M71.897 0a1.5 1.5 0 0 1 1.31.769l22.605 40.5a1.5 1.5 0 0 1 0 1.462l-22.605 40.5a1.5 1.5 0 0 1-1.31.769H49.481a1 1 0 0 1-.873-1.487L70.812 42.73a1.5 1.5 0 0 0 0-1.462L48.608 1.487A1 1 0 0 1 49.481 0ZM24.655.564l22.72 40.705a1.5 1.5 0 0 1 0 1.462l-22.72 40.705a1 1 0 0 1-1.746 0L.19 42.73a1.5 1.5 0 0 1 0-1.462L22.91.564a1 1 0 0 1 1.746 0Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23a)'%3E%3Cg clip-path='url(%23b)'%3E%3Cpath fill='<%= url_encode theme.favicon_light_mode %>' d='M0 0h96v84H0V0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"
media="(prefers-color-scheme: light)">
<% end %>
<script>
- window.LOG_LEVEL = <%= config.log_level %>;
- window.APP_NAME = "<%= Lookbook::Engine.app_name %>";
- <% if Lookbook::Engine.websocket.mounted? %>
- window.SOCKET_PATH = "<%= Lookbook::Engine.websocket.full_mount_path %>";
+ window.LOG_LEVEL = <%= @config.log_level %>;
+ window.APP_NAME = "<%= @engine.app_name %>";
+ <% if @engine.websocket.mounted? %>
+ window.SOCKET_PATH = "<%= @engine.websocket.full_mount_path %>";
<% end %>
</script>
<script src="<%= asset_path("/js/lookbook.js") %>" defer></script>
<% if params[:lookbook_embed] %>
<script src="<%= asset_path("/js/embed.js") %>" defer></script>
<% end %>
- <title><%= [@title, config.project_name || "Lookbook"].compact.join(" :: ") %></title>
+ <title><%= [@title, @config.project_name || "Lookbook"].compact.join(" :: ") %></title>
</head>
<body>
<%= yield :body %>
</body>
</html>