bootstrap4-kaminari-views 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.rdoc +11 -4
- data/app/views/kaminari/twitter-bootstrap-4/_paginator.html.erb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: dd393f6484e038de03d3f26b2392c8669326ef4de4010fd1da30dc26971a16f6
|
|
4
|
+
data.tar.gz: cf03cfba49da1e33d3f125ff6ae9c51f7faf2a75374afc25ccfef02273d39b47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dfd62e5e8617e2710132caa5f764ab74d180fb55a511901b5d59a37069d8173a46f9ec7dcc367941a5a22c2b9e18cee53ba9509032e9d85b444e98be790c614
|
|
7
|
+
data.tar.gz: 54de673e1dc8739d94d4271bc7292a698b3786e898cbf115792bad4b70d8141a992d64984c75b33d1ef5cbca6b58eecddf0bef6c31b8742db423f986b76ec528
|
data/README.rdoc
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
= Bootstrap4 Kaminari Views
|
|
2
2
|
|
|
3
|
-
Quick Bootstrap 4 styling (tested for bootstrap 4.0.0
|
|
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
|
-
|
|
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.
|
|
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:
|
|
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.
|
|
93
|
+
rubygems_version: 2.7.6
|
|
94
94
|
signing_key:
|
|
95
95
|
specification_version: 4
|
|
96
96
|
summary: Bootstrap 4 styling for Kaminari gem
|