Sha256: 142c8d548d4dedd64381d74b9f0d0def846132d651d200c0ce5d1a8bd8fe8bf5

Contents?: true

Size: 940 Bytes

Versions: 4

Compression:

Stored size: 940 Bytes

Contents

<%- if @elements.blank? -%>
<div id="trash_empty_notice" <%= @elements.blank? ? '' : 'style="display: none"' %> class="info">
  <%= render_icon('info') %>
  <%= _t('Your trash is empty') %>
</div>
<%- else -%>
<%= render_message do %>
  <%= _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? { |e| e['name'] == element.name }
    } %>
<%- end -%>
</div>
<p>
  <%= link_to_confirm_dialog _t('clear trash'),
    _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(<%= @draggable_trash_items.to_json.html_safe %>);
  Alchemy.TrashWindow.updateIcon();
</script>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/trash/index.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/trash/index.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/trash/index.html.erb