• " data-slug="<%= page.slug %>" data-restricted="<%= page.restricted? %>" data-visible="<%= page.visible? %>" data-external="<%= page.redirects_to_external? %>">
    <%= sitemap_folder_link(page) unless page.level == 1 || page.children.blank? || @sorting %> <% if page.layout_description.blank? %> <% else %>
    <% end %>
    <%- unless @sorting -%> <%- if can?(:info, page) -%> <%= link_to_dialog( render_icon('info'), alchemy.info_admin_page_path(page), { title: _t(:page_infos), size: '520x290' }, { title: _t(:page_infos), class: 'sitemap_tool' } ) %> <%- end -%> <%- if can?(:configure, page) -%> <%= link_to_dialog( render_icon('configure_page'), alchemy.configure_admin_page_path(page), { title: _t(:edit_page_properties), size: page.redirects_to_external? ? '450x330' : '450x720' }, title: _t(:edit_page_properties), class: 'sitemap_tool' ) -%> <%- end -%> <%- if can?(:copy, page) -%> <%= link_to( render_icon("copy_page"), alchemy.insert_admin_clipboard_path( remarkable_type: page.class.name.demodulize.underscore.pluralize, remarkable_id: page.id ), remote: true, method: 'post', title: _t(:copy_page), class: 'sitemap_tool' ) %> <%- end -%> <%- if can?(:destroy, page) -%> <%= link_to_confirm_dialog( render_icon('delete_page'), _t(:confirm_to_delete_page), url_for( controller: 'pages', action: 'destroy', id: page.id ), { title: _t(:delete_page), class: 'sitemap_tool' } ) -%> <%- end -%> <%- if can?(:create, Alchemy::Page) -%> <%= link_to_dialog( render_icon('add_page'), alchemy.new_admin_page_path(parent_id: page.id), { title: _t(:create_page), size: '340x165', overflow: true }, title: _t(:create_page), class: 'sitemap_tool' ) -%> <%- end -%> <%- end -%>
    <%- if page.redirects_to_external? -%> <%= page.name %> » <%= _t('Redirects to') %>: <%= h page.external_urlname %> <%- else -%> <%= link_to_unless( @sorting, page.name, alchemy.edit_admin_page_path(page), title: _t(:edit_page), class: "sitemap_pagename_link" ) { content_tag('span', page.name, class: "sitemap_pagename_link") } -%> <%- end -%>
    <%- if @sorting || (!page.folded?(current_alchemy_user) && !page.children.empty?) -%> <%- end -%>