will_paginate_semantic_ui 2.0.1 → 2.1.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/README.md +12 -0
- data/lib/will_paginate_semantic_ui/generic_renderer.rb +5 -2
- data/lib/will_paginate_semantic_ui/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc883d7585180f6eb62b455ee97ea8c427ff5cdb
|
4
|
+
data.tar.gz: 5546e7b07f2b564f359e1ef8403fc16ba66f50e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd99e970c0e288a296dcacfb64a393fde2928fe672afd926337ed91e0449acf89231228ae29fdd0da2c873ef577b09943bc79e341c625033144ede5092aac59a
|
7
|
+
data.tar.gz: 8555ce43c95853be912e66c87828b1b16bc63980842e5575801eb932f0e50a4c603cfa3edd60476102331991353275e8be9a74581cf5eb837e90c6a46010a62f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 2.1.0
|
4
|
+
|
5
|
+
- Avoid creation of `/false` links when that page not exists. (For more details: https://github.com/rafaelbiriba/will_paginate_semantic_ui/pull/1 )
|
6
|
+
|
3
7
|
## 2.0.1
|
4
8
|
|
5
9
|
- Fix error when Sinatra and ActionView is available in the same project
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -63,3 +63,15 @@ The command above create this
|
|
63
63
|

|
64
64
|
|
65
65
|
`class: "right floated"` useful if you are using inside a table. Floats the pagination to the right.
|
66
|
+
|
67
|
+
## Contributing
|
68
|
+
|
69
|
+
First of all, **thank you** for wanting to help!
|
70
|
+
|
71
|
+
1. [Fork it](https://help.github.com/articles/fork-a-repo).
|
72
|
+
2. Create a feature branch - `git checkout -b more_magic`
|
73
|
+
3. Add tests and make your changes
|
74
|
+
4. Check if tests are ok - `rake spec`
|
75
|
+
5. Commit changes - `git commit -am "Added more magic"`
|
76
|
+
6. Push to Github - `git push origin more_magic`
|
77
|
+
7. Send a [pull request](https://help.github.com/articles/using-pull-requests)! :heart:
|
@@ -20,8 +20,11 @@ module WillPaginateSemanticUi
|
|
20
20
|
|
21
21
|
def previous_or_next_page(page, classname)
|
22
22
|
classLink = "icon item"
|
23
|
-
|
24
|
-
|
23
|
+
unless page
|
24
|
+
tag(:a, tag("i", "", class: "#{classname} chevron icon"), class: classLink + " disabled")
|
25
|
+
else
|
26
|
+
link(tag("i", "", class: "#{classname} chevron icon"), page, {class: classLink})
|
27
|
+
end
|
25
28
|
end
|
26
29
|
|
27
30
|
def gap
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: will_paginate_semantic_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Biriba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: will_paginate
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.6.10
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Integrates the Semantic UI pagination component with will_paginate
|