bootstrap4-kaminari-views 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 697d5fed5b4bbb052883a1c078a460f081db015f
4
- data.tar.gz: 54d1d613d3065e8b5cf89fa4802330d177457952
2
+ SHA256:
3
+ metadata.gz: dd393f6484e038de03d3f26b2392c8669326ef4de4010fd1da30dc26971a16f6
4
+ data.tar.gz: cf03cfba49da1e33d3f125ff6ae9c51f7faf2a75374afc25ccfef02273d39b47
5
5
  SHA512:
6
- metadata.gz: d186ff75c2aa2fce95c5a9beaca01b7da3178d7c2ead4eeba309c08f453e1f988d14b3e462293f79c36e15e58668e53fb03f2cab734ccdbb56c3cc14b9ae1cb1
7
- data.tar.gz: 9ee424aafb7f1841dc27f5c2534cb0413c7352f85ea2eea2685c0f9ee3f037ea003c8f3fb7f1e97f2fc19420237c931e5d4c46ec0833eb0c9f58245835c540ec
6
+ metadata.gz: 8dfd62e5e8617e2710132caa5f764ab74d180fb55a511901b5d59a37069d8173a46f9ec7dcc367941a5a22c2b9e18cee53ba9509032e9d85b444e98be790c614
7
+ data.tar.gz: 54de673e1dc8739d94d4271bc7292a698b3786e898cbf115792bad4b70d8141a992d64984c75b33d1ef5cbca6b58eecddf0bef6c31b8742db423f986b76ec528
@@ -1,6 +1,6 @@
1
1
  = Bootstrap4 Kaminari Views
2
2
 
3
- Quick Bootstrap 4 styling (tested for bootstrap 4.0.0.alpha3) for {Kaminari}[https://github.com/amatsuda/kaminari]
3
+ Quick Bootstrap 4 styling (tested for bootstrap 4.0.0) for {Kaminari}[https://github.com/amatsuda/kaminari]
4
4
 
5
5
  = Installation
6
6
  Include to your Gemfile
@@ -8,15 +8,22 @@ Include to your Gemfile
8
8
  gem 'kaminari'
9
9
  gem 'bootstrap4-kaminari-views'
10
10
 
11
+ And run in console
12
+
13
+ bundle install
14
+
15
+ = Usage
11
16
  Render Pagination with a theme
12
17
 
13
18
  = paginate @users, theme: 'twitter-bootstrap-4'
14
19
 
15
- Render with specific pagination classes
20
+ Render with specific pagination & nav classes
16
21
 
17
22
  = paginate @users, theme: 'twitter-bootstrap-4',
18
- pagination_class: "pagination-sm"
23
+ pagination_class: "pagination-sm",
24
+ nav_class: "d-inline-b"
19
25
  = Credits
20
26
 
21
27
  {Kaminari}[https://github.com/amatsuda/kaminari] - For making kaminari gem
22
- {bootstrap-kaminari-views}[https://github.com/matenia/bootstrap-kaminari-views] - For making bootstrap-ify views for kaminari
28
+
29
+ {bootstrap-kaminari-views}[https://github.com/matenia/bootstrap-kaminari-views] - For making bootstrap-ify views for kaminari
@@ -7,8 +7,9 @@
7
7
  paginator: the paginator that renders the pagination tags inside
8
8
  -%>
9
9
  <%- pagination_class ||= '' %>
10
+ <%- nav_class ||= '' %>
10
11
  <%= paginator.render do -%>
11
- <nav>
12
+ <nav class="<%= nav_class %>">
12
13
  <ul class="pagination <%= pagination_class %>">
13
14
  <%= first_page_tag unless current_page.first? %>
14
15
  <%= prev_page_tag unless current_page.first? %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap4-kaminari-views
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Dzierbicki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-13 00:00:00.000000000 Z
11
+ date: 2018-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kaminari
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.4.5.1
93
+ rubygems_version: 2.7.6
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Bootstrap 4 styling for Kaminari gem