app/views/administrador/resources_controller/base/index.html.haml in administrador-0.0.28.pre vs app/views/administrador/resources_controller/base/index.html.haml in administrador-0.0.29.pre

- old
+ new

@@ -1,8 +1,8 @@ .row .col-12 - %h1= t('.title', inflections) + %h1= t('.title', **inflections) - if Administrador.features?(:rao_query) .row .col-12 = query_helper(self).form_for(@collection, url: {}, html: { class: 'administrador-query-form form-inline' }, method: :get) do |f| @@ -10,20 +10,24 @@ = render partial: 'query_form_buttons', locals: { form: f } .row .col-12 .before-index-table= render partial: 'before_index_table', locals: { collection: @collection } +- if Administrador.features?(:kaminari) && @collection.respond_to?(:total_pages) + .row + .col-12 + = render partial: 'pagination', locals: { collection: @collection } + .row .col-12 - = collection_table(collection: @collection, resource_class: resource_class, table_html: "collection-table table table-responsive #{resource_class.name.underscore.pluralize.gsub('/', '-')} table-xs") do |table| + = collection_table(collection: @collection, resource_class: resource_class, table_html: "collection-table table table-responsive #{resource_class.name.underscore.pluralize.gsub('/', '-')}") do |table| = render partial: 'index_table', locals: { table: table } = render partial: 'index_table_actions', locals: { table: table } - if Administrador.features?(:kaminari) && @collection.respond_to?(:total_pages) .row .col-12.d-flex - .mx-auto - = render partial: 'pagination', locals: { collection: @collection } + = render partial: 'pagination', locals: { collection: @collection } .row .col-12 .after-index-table= render 'after_index_table', locals: { collection: @collection } \ No newline at end of file