Sha256: 44babe088ff78aa24f645050d9bf247f589b00e45680ae82c8001b73790d19c5
Contents?: true
Size: 1.25 KB
Versions: 12
Compression:
Stored size: 1.25 KB
Contents
<% menu = parent_resource %> <% item = child_resource %> <div class="sortable-tree-item-row d-flex flex-nowrap"> <div class="move-handle d-flex align-items-center p-3"> <%= svg_icon(name: 'grip-vertical.svg', width: '20', height: '20') %> </div> <div class="d-flex align-items-center overflow-hidden w-100"> <div class="overflow-hidden"> <%= item.name %> <% if item.link.present? %> <span class="badge badge-pill badge-light badge-light-muted-text">-> <%= item.link %></span> <% end %> <small class="form-text text-muted mt-0"> <%= "#{Spree.t('admin.navigation.type')}: #{item.item_type}" %> <%= "| #{Spree.t('admin.navigation.code')}: #{item.code}" if item.code.present? %> </small> </div> <% if item.icon.present? %> <div class="ml-2"> <div class="item_image_holder"> <%= image_tag main_app.cdn_image_url(item.icon.attachment) %> </div> </div> <% end %> </div> <div class="d-flex align-items-center space-buttons px-2"> <%= link_to_edit(item, no_text: true, url: spree.edit_admin_menu_menu_item_path(menu, item)) %> <%= link_to_delete(item, no_text: true, url: spree.admin_menu_menu_item_path(menu, item)) if can?(:destroy, item) %> </div> </div>
Version data entries
12 entries across 12 versions & 1 rubygems