<%- if @elements.blank? -%>

> <%= _('Your trash is empty') %>

<%- else -%>
<%= render_icon('info') %> <%= _('Drag an element over to the element window to restore it.') %>
<%- @elements.each do |element| -%> <%= render :partial => 'admin/elements/element', :object => element, :locals => {:draggable => !@allowed_elements.detect { |e| e['name'] == element.name }.nil?} %> <%- end -%>

<%= link_to_confirmation_window(_('clear trash'), _('Do you really want to clear the trash?'), clear_admin_trash_path(:page_id => @page.id), :class => 'button') %>

<%- end -%>