Sha256: 0cf0f14a80a801c7198ec037776440688045d4785231dfd3ecc5bdfdb2f2f193

Contents?: true

Size: 825 Bytes

Versions: 3

Compression:

Stored size: 825 Bytes

Contents

<% content_for :body do %>
  <% if request_frame == "root" %>
    <div
      id="app"
      x-data="app"
      x-cloak
      x-on:popstate.window="handleNavigation"
      x-on:click.document="hijax"
      class="overflow-hidden">
      
      <%= render "lookbook/partials/user_styles" %>

      <div id="app-main" class="contents">
        <%= content_for?(:main) ? yield(:main) : yield %>
      </div>
    </div>

    <% if content_for? :dropdowns %>
      <div class="hidden">
        <%= content_for :dropdowns -%>
      </div>
    <% end %>
  <% elsif request_frame == "main" %>
    <div id="app-main">
      <%= content_for?(:main) ? yield(:main) : yield %>
    </div>    
  <% end %>    
<% end %>

<% if frame_request? %>
  <%= yield :body %>
<% else %>
  <%= render template: "layouts/lookbook/skeleton" %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/views/layouts/lookbook/embed.html.erb
lookbook-2.3.3 app/views/layouts/lookbook/embed.html.erb
lookbook-2.3.2 app/views/layouts/lookbook/embed.html.erb