Sha256: 29a2f24a3e7c67a2aa6a53edf47559c838bda8a5bc3dec0487e050640ae59136

Contents?: true

Size: 1011 Bytes

Versions: 26

Compression:

Stored size: 1011 Bytes

Contents

<div class="with_padding">
  <%- 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 -%>
  <div class="info">
    <%= render_icon('info') %>
    <%= _t('Drag an element over to the element window to restore it') %>
  </div>
  <div id="trash_items">
    <%- @elements.each do |element| -%>
    <%= render :partial => 'alchemy/admin/elements/element', :object => element, :locals => {:draggable => !@allowed_elements.detect { |e| e['name'] == element.name }.nil? } rescue "" %>
    <%- end -%>
  </div>
  <p>
    <%= link_to_confirmation_window(_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 -%>
</div>
<script type="text/javascript" charset="utf-8">
  Alchemy.DraggableTrashItems(<%= @draggable_trash_items.to_json.html_safe %>);
</script>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.6.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.6.2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.6.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.6.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.5.3.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.5.3 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.5.2.2 app/views/alchemy/admin/trash/index.html.erb