Sha256: bb6c45832132e8bf9c3f16f1f507f66b2b2ac2de9c0ad218c31e8acb1a9d9ec4

Contents?: true

Size: 997 Bytes

Versions: 31

Compression:

Stored size: 997 Bytes

Contents

<%- if @elements.blank? -%>
<div id="trash_empty_notice" <%= @elements.blank? ? '' : 'style="display: none"' %> class="info">
  <%= render_icon('info') %>
  <%= Alchemy.t('Your trash is empty') %>
</div>
<%- 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| -%>
  <%= render partial: 'alchemy/admin/elements/element',
    object: element,
    locals: {
      draggable: @allowed_elements.any? do |e|
        e['name'] == element.name || e.fetch('nestable_elements', []).include?(element.name)
      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

31 entries across 31 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.6.7 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.4.2 app/views/alchemy/admin/trash/index.html.erb