Sha256: f323412183c987400ce6054b23a0745c6d3fb82baece717488fa5b3894ce4ebd

Contents?: true

Size: 567 Bytes

Versions: 42

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # Helper to paginate collections.
  module PaginateHelper
    # Displays pagination links for the given collection, setting the correct
    # theme. This mostly acts as a proxy for the underlying pagination engine.
    #
    # collection - a collection of elements that need to be paginated
    # paginate_params - a Hash with options to delegate to the pagination helper.
    def decidim_paginate(collection, paginate_params = {})
      paginate collection, theme: "decidim", params: paginate_params
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.8 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.7 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.6 app/helpers/decidim/paginate_helper.rb
decidim-core-0.26.10 app/helpers/decidim/paginate_helper.rb
decidim-core-0.26.9 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.5 app/helpers/decidim/paginate_helper.rb
decidim-core-0.26.8 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.4 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.3 app/helpers/decidim/paginate_helper.rb
decidim-core-0.26.7 app/helpers/decidim/paginate_helper.rb
decidim-core-0.26.5 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.2 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.1 app/helpers/decidim/paginate_helper.rb
decidim-core-0.26.4 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.0 app/helpers/decidim/paginate_helper.rb
decidim-core-0.26.3 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.0.rc2 app/helpers/decidim/paginate_helper.rb
decidim-core-0.27.0.rc1 app/helpers/decidim/paginate_helper.rb
decidim-core-0.26.2 app/helpers/decidim/paginate_helper.rb