Sha256: 06cd5a9e773b171d20d67dbc7b333acbfd80eda2eeef548c915433049ec3453c
Contents?: true
Size: 1.34 KB
Versions: 12
Compression:
Stored size: 1.34 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__dismissible mdc-drawer mdc-drawer--dismissible mdc-drawer--open"> <% 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>
Version data entries
12 entries across 12 versions & 1 rubygems