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

Version Path
alchemy_cms-5.3.8 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.3.7 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.3.6 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.3.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.3.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.3.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.3.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.3.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.3.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.7 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.6 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.1.10 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.0.10 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.6.7 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.1.9 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.0.9 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.6.6 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.1.8 app/views/alchemy/admin/trash/index.html.erb