Sha256: 4e04b4c3d618f17730d045f51c5fa0d2647105a024f3749393721d3bb1a714a5
Contents?: true
Size: 1.04 KB
Versions: 73
Compression:
Stored size: 1.04 KB
Contents
<%- if @elements.blank? -%> <%= render_message do %> <%= Alchemy.t('Your trash is empty') %> <% end %> <%- else -%> <%= render_message do %> <%= Alchemy.t('Drag an element over to the element window to restore it') %> <% end %> <div id="trash_items"> <%- @elements.each do |element| -%> <% draggable = @allowed_elements.any? { |e| !e['fixed'] && e['name'] == element.name || element.name.in?(e.fetch('nestable_elements', [])) } %> <%= content_tag :div, data: {'element-id' => element.id, 'element-name' => element.name}, class: ['element-editor', draggable ? 'draggable' : 'not-draggable'] do %> <%= render 'alchemy/admin/elements/element_header', element: element %> <% end %> <%- end -%> </div> <p> <%= link_to_confirm_dialog Alchemy.t('clear trash'), Alchemy.t('Do you really want to clear the trash?'), alchemy.clear_admin_trash_path(page_id: @page.id), class: 'button' %> </p> <%- end -%> <script type="text/javascript" charset="utf-8"> Alchemy.DraggableTrashItems(); Alchemy.TrashWindow.updateIcon(); </script>
Version data entries
73 entries across 73 versions & 1 rubygems