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

Version Path
spree_backend-4.8.4 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.8.3 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.8.2 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.8.1 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.7.2 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.6.2 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.7.1 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.7.0 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.6.1 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.6.0 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.5.1 app/views/spree/admin/shared/sortable_tree/_menu.html.erb
spree_backend-4.5.0 app/views/spree/admin/shared/sortable_tree/_menu.html.erb