<commit_before><% content_for :title do %>Lista de <%= @model.title_plural %><% end %>

<%= render model_template(@application, @model, 'filters'), { :url => model_link(@application, @model) } %>
	
<div class="row-fluid">	
	<div class="span12">
		
			<div class="box list">
				<div class="box-title">
					<h3>
						<i class="icon-table"></i>
						<%= @model.title_plural %>
					</h3>
					
					<div class="pull-right">
						
						<%= link_to(collection_model_link(@application, @model, :destroy_all), :class => "btn btn-danger btn-remove-all-selected") do %>
							<i class="icon-trash"></i>
							Excluir Selecionados
						<% end if @model.my_admin.can?(:destroy, my_admin_user) %>
						
						<%= link_to(new_model_link(@application, @model), :class => "btn btn-success") do %>
							<i class="icon-plus"></i>
							Adicionar
							<%#= I18n.t('my_admin.titles.models.new', :model => @model.title) %>
						<% end if @model.my_admin.can?(:create, my_admin_user) %>

				    <%= link_to(collection_model_link(@application, @model, :export), :class => "btn btn-inverse") do %>
							<i class="glyphicon-file_export"></i>
							<%= I18n.t('my_admin.titles.models.export', :model => @model.title) %>
						<% end if @model.my_admin.can?(:export, my_admin_user) %>

					</div>
					<div class="actions pull-right">
						<div class="input-medium per_page">
							<%= select_tag :per_page, options_for_select([10,20,50,100].map { |i| ["#{i} por página", model_link(@application, @model, params.clone.update({:per_page => i}))]}, model_link(@application, @model, params.clone.update({:per_page => params[:per_page]}))), :class => 'chosen-select', "data-nosearch" => true %>
						</div>
					</div>
					
				</div>

				<div class="box-content nopadding">

					
					<table class="table table-hover table-nomargin table-bordered" data-nosort="0">
						<thead>
							<tr class='thefilter'>
								<% if @model.my_admin.can?(:destroy, my_admin_user) %>
									<th class='with-checkbox'><input type="checkbox" name="check_all" id="check_all"></th>
								<% end %>
									
								<% @model.my_admin.list_display.each do |field| %>
						      <% order = (params[:order_by] == field.to_s && params[:order] == "asc") ? "desc" : "asc"  %>
									
									  <% if field_can_order(@application, @model, field) %>
											<th class="sorting<%= "_#{params[:order]}" if params[:order_by] == field.to_s %>">
									    	<%= link_to( field_title(@model, field), model_link(@application, @model, params.clone.update({:order => order, :order_by => field}))) %>
											</th>
										<% else %>
											<th>
										  	<%= field_title(@model, field) %>
											</th>
										<% end %>
									</th>
								<% end %>
								
								<% if @model.my_admin.can?(:destroy, my_admin_user) or @model.my_admin.can?(:update, my_admin_user) %>
								  <th></th>
								<% end %>
							</tr>
						</thead>
						<% unless @objects.blank? %>
						  <% @objects.each do |object| %>
								<tbody>
									<tr>
										<% if @model.my_admin.can?(:destroy, my_admin_user) %>
											<td class="with-checkbox">
												<%= check_box_tag :remove, object.id %>
											</td>
										<% end %>
								
										<% @model.my_admin.list_display.each_with_index do |field, index| %>
				  						<td>
				  							<%= field_content(@application, @model, field, object) %>
				  						</td>
				  					<% end %>

				  					<% if @model.my_admin.can?(:destroy, my_admin_user) or @model.my_admin.can?(:update, my_admin_user) %>
				  						<td>
												<%= link_to(edit_model_link(@application, @model, object), :class => "btn btn-mini btn-inverse") do %>
													<i class="icon-edit"></i>
													<%= I18n.t('my_admin.labels.models.edit') %>
												<% end if @model.my_admin.can?(:update, my_admin_user) %>
																								
												<%= link_to(show_model_link(@application, @model, object), :method => :delete, :model => @model.title), :class => "btn btn-mini btn-danger", :data => {:confirm => I18n.t('my_admin.messages.models.confirm_remove'}) do %>
													<i class="icon-trash"></i>
													<%= I18n.t('my_admin.labels.models.remove') %>
												
												<% end if @model.my_admin.can?(:destroy, my_admin_user) %>
												
											</td>
				  					<% end %>
									</tr>
								</tbody>
							<% end %>
			  		<% end %>
					</table>
		
					<%= render model_template(@application, @model, 'paginate') %>

				</div>
			</div>
		
		
	</div>
</div><commit_msg>Revert "Fix Confirm Delete to new Rails Version"<commit_after><% content_for :title do %>Lista de <%= @model.title_plural %><% end %>

<%= render model_template(@application, @model, 'filters'), { :url => model_link(@application, @model) } %>
	
<div class="row-fluid">	
	<div class="span12">
		
			<div class="box list">
				<div class="box-title">
					<h3>
						<i class="icon-table"></i>
						<%= @model.title_plural %>
					</h3>
					
					<div class="pull-right">
						
						<%= link_to(collection_model_link(@application, @model, :destroy_all), :class => "btn btn-danger btn-remove-all-selected") do %>
							<i class="icon-trash"></i>
							Excluir Selecionados
						<% end if @model.my_admin.can?(:destroy, my_admin_user) %>
						
						<%= link_to(new_model_link(@application, @model), :class => "btn btn-success") do %>
							<i class="icon-plus"></i>
							Adicionar
							<%#= I18n.t('my_admin.titles.models.new', :model => @model.title) %>
						<% end if @model.my_admin.can?(:create, my_admin_user) %>

				    <%= link_to(collection_model_link(@application, @model, :export), :class => "btn btn-inverse") do %>
							<i class="glyphicon-file_export"></i>
							<%= I18n.t('my_admin.titles.models.export', :model => @model.title) %>
						<% end if @model.my_admin.can?(:export, my_admin_user) %>

					</div>
					<div class="actions pull-right">
						<div class="input-medium per_page">
							<%= select_tag :per_page, options_for_select([10,20,50,100].map { |i| ["#{i} por página", model_link(@application, @model, params.clone.update({:per_page => i}))]}, model_link(@application, @model, params.clone.update({:per_page => params[:per_page]}))), :class => 'chosen-select', "data-nosearch" => true %>
						</div>
					</div>
					
				</div>

				<div class="box-content nopadding">

					
					<table class="table table-hover table-nomargin table-bordered" data-nosort="0">
						<thead>
							<tr class='thefilter'>
								<% if @model.my_admin.can?(:destroy, my_admin_user) %>
									<th class='with-checkbox'><input type="checkbox" name="check_all" id="check_all"></th>
								<% end %>
									
								<% @model.my_admin.list_display.each do |field| %>
						      <% order = (params[:order_by] == field.to_s && params[:order] == "asc") ? "desc" : "asc"  %>
									
									  <% if field_can_order(@application, @model, field) %>
											<th class="sorting<%= "_#{params[:order]}" if params[:order_by] == field.to_s %>">
									    	<%= link_to( field_title(@model, field), model_link(@application, @model, params.clone.update({:order => order, :order_by => field}))) %>
											</th>
										<% else %>
											<th>
										  	<%= field_title(@model, field) %>
											</th>
										<% end %>
									</th>
								<% end %>
								
								<% if @model.my_admin.can?(:destroy, my_admin_user) or @model.my_admin.can?(:update, my_admin_user) %>
								  <th></th>
								<% end %>
							</tr>
						</thead>
						<% unless @objects.blank? %>
						  <% @objects.each do |object| %>
								<tbody>
									<tr>
										<% if @model.my_admin.can?(:destroy, my_admin_user) %>
											<td class="with-checkbox">
												<%= check_box_tag :remove, object.id %>
											</td>
										<% end %>
								
										<% @model.my_admin.list_display.each_with_index do |field, index| %>
				  						<td>
				  							<%= field_content(@application, @model, field, object) %>
				  						</td>
				  					<% end %>

				  					<% if @model.my_admin.can?(:destroy, my_admin_user) or @model.my_admin.can?(:update, my_admin_user) %>
				  						<td>
												<%= link_to(edit_model_link(@application, @model, object), :class => "btn btn-mini btn-inverse") do %>
													<i class="icon-edit"></i>
													<%= I18n.t('my_admin.labels.models.edit') %>
												<% end if @model.my_admin.can?(:update, my_admin_user) %>
																								
												<%= link_to(show_model_link(@application, @model, object), :method => :delete, :confirm => I18n.t('my_admin.messages.models.confirm_remove', :model => @model.title), :class => "btn btn-mini btn-danger") do %>
													<i class="icon-trash"></i>
													<%= I18n.t('my_admin.labels.models.remove') %>
												
												<% end if @model.my_admin.can?(:destroy, my_admin_user) %>
												
											</td>
				  					<% end %>
									</tr>
								</tbody>
							<% end %>
			  		<% end %>
					</table>
		
					<%= render model_template(@application, @model, 'paginate') %>

				</div>
			</div>
		
		
	</div>
</div>
{'fraction_non_alphanumeric': 0.19218989280245022, 'fraction_numerical': 0.005250492233646905, 'mean_word_length': 2.3344274252370534, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 242, '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': '5094627', 'n_tokens_mistral': 4622, 'n_tokens_neox': 3051, 'n_words': 533}