Sha256: 19075a7a3bdcc0e8f3faffc0d8f58b48d2baa30cf46bd87f6608010d26350b1a

Contents?: true

Size: 1.32 KB

Versions: 15

Compression:

Stored size: 1.32 KB

Contents

<% custom_fields = nav_menu.get_field_groups.any? %>
<ol class="dd-list">
    <% items.each do |item|
      item_data = parse_menu_item(item)
      next  unless item_data.present?
    %>
        <li class="dd-item" data-id="<%= item.id %>">
            <div class="dd-handle dd3-handle"></div>
            <div class="dd3-content"><span><%= item_data[:name] %></span>
                <span class="label label-default"><%= item.kind %></span>
                <%= link_to('<i class="fa fa-edit"></i>'.html_safe, item_data[:url_edit] || url_for(action: :edit_menu_item, nav_menu_id: nav_menu.id, id: item.id), target: '_blank', title: t('.edit_menu_item', default: 'Edit Menu Item'), class: "item_#{item.kind}") %>
                <%= link_to('<i class="fa fa-cog"></i>'.html_safe, {action: :custom_settings, nav_menu_id: nav_menu.id, id: item.id, cama_skip_breadcrumb: true}, class: 'custom_settings_link', title: t('.edit_custom_settings', default: 'Edit Configurations')) if custom_fields %>
                <%= link_to('<i class="fa fa-times-circle"></i>'.html_safe, url_for(action: :delete_menu_item, nav_menu_id: nav_menu.id, id: item.id), class: 'delete_menu_item') %>
            </div>
            <%= render('menu_items', items: item.children.reorder(:term_order), nav_menu: nav_menu) if item.children.any? %>
        </li>
    <% end %>
</ol>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
camaleon_cms-2.4.2 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.4.1 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.4.0 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.7.2 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.7.1 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.7 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.6 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.5 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.4 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.3 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.2 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.1 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.3.0 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.2.1 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb
camaleon_cms-2.2.0 app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb