Sha256: b134aa6514f926ebbb1e2e431828e2963c064feec2b25f9fc8d76b71e3e4acff

Contents?: true

Size: 898 Bytes

Versions: 5

Compression:

Stored size: 898 Bytes

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| -%>
  <%= 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

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_cms-4.1.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.1.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.1.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.1.0.rc1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-4.1.0.beta app/views/alchemy/admin/trash/index.html.erb