Sha256: dfdf7bc2da469e48f658b3cb8fcdd7639dd8d10650893880b86df2e9646bc374

Contents?: true

Size: 904 Bytes

Versions: 23

Compression:

Stored size: 904 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 %>);
</script>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
alchemy_cms-3.1.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.0.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.0.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.0.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/admin/trash/index.html.erb