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.0.8 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.6.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.5.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.4.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.6.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.0.7 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.1.7 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.1.6 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.0.6 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.1.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.0.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.1.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.6.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.0.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.1.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-5.2.0.rc1 app/views/alchemy/admin/trash/index.html.erb