Sha256: a88a67df811167273134d0c4272fb1cb3da271d0b8d6a3dfa636a87425a95459

Contents?: true

Size: 484 Bytes

Versions: 15

Compression:

Stored size: 484 Bytes

Contents

<% Spree::Backend::Config.menu_items.each do |menu_item| %>
  <% if instance_exec(&menu_item.condition) %>
    <%=
      tab(
          *menu_item.sections,
          icon: menu_item.icon,
          label: menu_item.label,
          url: menu_item.url.is_a?(Symbol) ? spree.public_send(menu_item.url) : menu_item.url,
          match_path: menu_item.match_path
      ) do
    %>
      <%- render partial: menu_item.partial if menu_item.partial %>
    <%- end %>
  <% end %>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
alchemy-solidus-4.0.0.pre.b2 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-4.0.0.pre.b1 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.3.0 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.2.2 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.2.1 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.2.0 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.1.1 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.1.0 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.0.2 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.0.1 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-3.0.0 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-2.5.1 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-2.5.0 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-2.4.0 lib/views/spree/admin/shared/_tabs.html.erb
alchemy-solidus-2.3.2 lib/views/spree/admin/shared/_tabs.html.erb