Sha256: 91d6005de20ca1566798894d9257ddeae6db6873cb59580d065f99ca36a2180b

Contents?: true

Size: 1007 Bytes

Versions: 5

Compression:

Stored size: 1007 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

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_cms-2.4.1 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.5.0.b5 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.5.0.b2 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.4.0 app/views/alchemy/admin/trash/index.html.erb
alchemy_cms-2.4.rc4 app/views/alchemy/admin/trash/index.html.erb