app/views/my_admin/models/index.html.erb in my_admin-0.1.10 vs app/views/my_admin/models/index.html.erb in my_admin-0.1.11
- old
+ new
@@ -35,10 +35,10 @@
<% 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,@model.all.count].map { |i| [ i == @model.all.count ? "Todos" : "#{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 %>
+ <%= 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>
\ No newline at end of file