Module: IndexPatch
- Included in:
- ActiveAdmin::Views::Pages::Index
- Defined in:
- lib/activeadmin_custom_layout/layout/pages/index.rb
Instance Method Summary collapse
- #build_batch_actions_selector ⇒ Object
- #build_collection ⇒ Object
- #build_index_list ⇒ Object
- #build_scopes ⇒ Object
- #build_table_tools ⇒ Object
- #render_index ⇒ Object
Instance Method Details
#build_batch_actions_selector ⇒ Object
8 9 10 11 12 |
# File 'lib/activeadmin_custom_layout/layout/pages/index.rb', line 8 def build_batch_actions_selector arbre_content_for :index_batch_actions do super end end |
#build_collection ⇒ Object
26 27 28 29 30 |
# File 'lib/activeadmin_custom_layout/layout/pages/index.rb', line 26 def build_collection arbre_content_for :index_collection do super end end |
#build_index_list ⇒ Object
20 21 22 23 24 |
# File 'lib/activeadmin_custom_layout/layout/pages/index.rb', line 20 def build_index_list arbre_content_for :index_index_list do super end end |
#build_scopes ⇒ Object
14 15 16 17 18 |
# File 'lib/activeadmin_custom_layout/layout/pages/index.rb', line 14 def build_scopes arbre_content_for :index_scopes do super end end |
#build_table_tools ⇒ Object
2 3 4 5 6 |
# File 'lib/activeadmin_custom_layout/layout/pages/index.rb', line 2 def build_table_tools arbre_content_for :index_table_tools do super end end |
#render_index ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/activeadmin_custom_layout/layout/pages/index.rb', line 32 def render_index renderer_class = find_index_renderer_class(config[:as]) entry_name = active_admin_config.resource_label entries_name = active_admin_config.plural_resource_label(count: collection_size) paginator = config.fetch(:paginator, true) download_links = config.fetch(:download_links, active_admin_config.namespace.download_links) pagination_total = config.fetch(:pagination_total, true) per_page = config.fetch(:per_page, active_admin_config.per_page) aa_data[:table] = { entry_name: entry_name, entries_name: entries_name, download_links: download_links, paginator: paginator, per_page: per_page, pagination_total: pagination_total } paginated_collection(collection, entry_name: entry_name, entries_name: entries_name, download_links: download_links, paginator: paginator, per_page: per_page, pagination_total: pagination_total) do div class: 'index_content' do insert_tag(renderer_class, config, collection) end end end |