Sha256: 864a63efa3524f1960c44f17c83f7cd6fe23bf80e844d6286be9b205e2426395
Contents?: true
Size: 1.35 KB
Versions: 12
Compression:
Stored size: 1.35 KB
Contents
<% top_items = drawer.menu&.items&.select { |i| eq(i.position, :top) } bottom_items = drawer.menu&.items&.select { |i| eq(i.position, :bottom) } %> <aside id="<%= drawer.id %>" class="v-drawer <% if bottom_items.any? %>v-drawer--full-height<% end %> v-drawer__modal mdc-drawer mdc-drawer--modal"> <% if drawer.title || drawer.subtitle %> <div class="mdc-drawer__header"> <% end %> <% if drawer.title %> <h3 class="mdc-drawer__title"><%= expand_text(drawer.title.text) %></h3> <% end %> <% if drawer.subtitle %> <h6 class="mdc-drawer__subtitle"><%= expand_text(drawer.subtitle.text) %></h6> <% end %> <% if drawer.title || drawer.subtitle %> </div> <% end %> <div class="mdc-drawer__content"> <nav class="mdc-list v-list <% if bottom_items.any? %>v-list--full-height<% end %>"> <% top_items.each do |item| %> <%= partial "body/drawer/#{item.type}", :locals => {item: item} %> <% end %> <% if bottom_items.any? %> <div class="v-list--bottom-wrapper"> <% bottom_items.each do |item| %> <%= partial "body/drawer/#{item.type}", :locals => {item: item} %> <% end %> </div> <% end %> </nav> <%= partial "components/render", :locals => {:components => drawer.components, :scope => nil} %> </div> </aside> <div class="mdc-drawer-scrim"></div>
Version data entries
12 entries across 12 versions & 1 rubygems