<commit_before><div class="with_padding">
	<%- if @elements.blank? -%>
	<p id="trash_empty_notice" <%= @elements.blank? ? '' : 'style="display: none"' %>>
		<%= _('Your trash is empty') %>
	</p>
	<%- else -%>
	<div class="info">
		<%= render_icon('info') %>
		<%= _('Drag an element over to the element window to restore it.') %>
	</div>
	<div id="trash_items">
		<%- @elements.each do |element| -%>
		<%= render :partial => 'admin/elements/element', :object => element, :locals => {:draggable => !@allowed_elements.detect { |e| e['name'] == element.name }.nil?} %>
		<%- end -%>
		<p>
			<%= link_to_confirmation_window(_('clear trash'), _('Do you really want to clear the trash?'), clear_admin_trash_path(:page_id => @page.id), :class => 'button') %>
		</p>
	</div>
	<%- end -%>
</div>
<script type="text/javascript" charset="utf-8">
	<%- cells_items = {} %>
	<%- @elements.each { |e| cells_items["element_#{e.id}"] = e.belonging_cellname };  -%>
	Alchemy.DraggableTrashItems(<%= cells_items.to_json %>);
</script>
<commit_msg>Showing Trash icon in Elements window<commit_after><div class="with_padding">
	<%- if @elements.blank? -%>
	<p id="trash_empty_notice" <%= @elements.blank? ? '' : 'style="display: none"' %>>
		<%= _('Your trash is empty') %>
	</p>
	<%- else -%>
	<div class="info">
		<%= render_icon('info') %>
		<%= _('Drag an element over to the element window to restore it.') %>
	</div>
	<div id="trash_items">
		<%- @elements.each do |element| -%>
		<%= render :partial => 'admin/elements/element', :object => element, :locals => {:draggable => !@allowed_elements.detect { |e| e['name'] == element.name }.nil?} %>
		<%- end -%>
		<p>
			<%= link_to_confirmation_window(_('clear trash'), _('Do you really want to clear the trash?'), clear_admin_trash_path(:page_id => @page.id), :class => 'button') %>
		</p>
	</div>
	<%- end -%>
</div>
<script type="text/javascript" charset="utf-8">
	<%- cells_items = {} %>
	<%- @elements.each { |e| cells_items["element_#{e.id}"] = e.belonging_cellname };  -%>
	Alchemy.DraggableTrashItems(<%= cells_items.to_json.html_safe %>);
</script>

{'fraction_non_alphanumeric': 0.23852772466539196, 'fraction_numerical': 0.0009560229445506692, 'mean_word_length': 4.4363636363636365, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4106320', 'n_tokens_mistral': 861, 'n_tokens_neox': 785, 'n_words': 161}