- Added :params and :anchor variables to control the generation of arbitrary URLs per pagy instance
- d185461: added :params and :anchor variables to control the generation of arbitrary URLs per pagy instance
- 62fd6c8: better forward improvements with pagy_url_for receiving the pagy instance instead of the single pagy_param
- 748de0d: readme and changelog improvement
- Added an initializer_example.rb that you can use as an easy template for pagy configuration
- Integrated extras from
pagy-extras
gem into pagy, now optionally required in the initializer - Refactored I18n: simpler code and simpler configuration now based on the
I18n
extra - Reorganized documentation and added a few more how-to topics
- Added the
:page_param
variable used to get the page number from and create the URL for the page links
- Extras are now integrated in pagy. The
pagy-extras
gem has been discontinued: you should remove it and update your code as indicated here - Pagy I18n has been refactored and it's simpler to use. The main change is that the
Pagy::I18N[:gem]
variable has been removed, so if you want to use theI18n
gem in place of the internal pagy implementation you need just torequire 'pagy/extra/i18n'
in your initializer. (see the I18n doc) pagy_url_for
now requires the pagy argument and it's called with 2 params: if you have overridden it, you should add the extra param.pagy_get_vars
now requires the vars argument and it's called with 2 params: if you have overridden it, you should add the extra param.pagy_array_get_vars
now requires the vars argument and it's called with 2 params: if you have overridden it, you should add the extra param.
- 3e2ad90: added CHANGELOG.md with the latest few versions (#23)
- f42811d: implemented :page_param (#20)
- 9040593: added doc about skipping single pages navs
- 605169a: added initializer_example.rb
- daa2c1b: I18n refactoring:
- simplified the pagy_t definition
- simplified the configuration of I18n now using the I18n extra to override the pagy_t
- modules are now required and not autoloaded
- updated doc
- 9b0d420: style cleanup (#24)
- dbc5a05: Add prev/next links to compact Bootstrap nav and improve HTML semantics (#21)
- f764cc1: refactoring extras:
- moved pagy-extra files into the extras dir - moved the templates dir into the extras dir
- updated the documentation
- befe92d: Fixes Travis Badge (#25)
- 3862d26: Travis (#22)
- 7050ee0: basic rubocop setup (#18)
- 7aee689: small docs improvements
- 92260b5: docs and comments refactoring, also updated for pagy-extras v0.2.0
- 46f235e: Remove a couple of Range allocations (#10)
- 39c5470: Only use and/or keywords for control flow (#12)
- 26bb29c: fix for last page items adjusted to 0 (#3)
- 860c579: small improvement: to_i called only once in core variables set
- b18f254: Merge pull request #5 from artinboghosian/patch-1
- 03d6ee8: Update README.md
- 358a806: a couple of links added to the doc
- fac1f34: docs small fixes and improvements
- e480d04: better handling of blank core variables
- b56ef9e: docs fixes and improvements
- 987be15: I18N[:plurals] proc uses symbols and returns a frozen string
- 6ea7a48: changes for PR #2: - use of local variable zero_one instead of constant I18N_PLURALS - VARS cannot be frozen
- fb8975b: Freeze class immutable constant variable at first
- ec8e268: created pagy-extras gem:
- moved pagy_nav_bootstrap method and templates
- updated docs files (fixes and use of relative links)
- facc4c3: unescaped notation for all erb usage
- 26c068f: moved require yaml in Frontend
- f5782d8: added css classes to pagy helper navs
- cee02c6: helper tags are strings
- 4788c3c: grouped the variables :initial, :before, :after and :final into one single :size array; #series can work with different sizes
- e610b82: minor docs fixes