Module: Layered::Ui::PaginationHelper
- Defined in:
- app/helpers/layered/ui/pagination_helper.rb
Instance Method Summary collapse
Instance Method Details
#l_ui_pagy(pagy) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/layered/ui/pagination_helper.rb', line 4 def l_ui_pagy(pagy) unless defined?(Pagy) return tag.p("Pagination requires the pagy gem. Add `gem \"pagy\"` to your Gemfile.", class: "l-ui-notice--warning") if Rails.env.development? return end return unless pagy.pages > 1 tag.div(pagy.series_nav.html_safe, class: "l-ui-container--pagy l-ui-utility--mt-lg") end |