effective_bootstrap 0.5.14 → 0.5.15
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/app/helpers/effective_bootstrap_helper.rb +3 -3
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f7d80b88762b5afd5af4d9b7d7b014c4dfe135e12f13d0a595a7469afbe5109
|
|
4
|
+
data.tar.gz: b9b44adbb10b5be1e1a381863df97f239243d28e65cfbf40b4c2754e9a96db8d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81b7b1efb4ef156b8e2c5c0af9bd564570068fccd7a425067657880eed2fb15b1cc0469729a512f4a79f87406fa9ebe87bf2ca7358cdb20c129cb436e95a7086
|
|
7
|
+
data.tar.gz: 563bbb04319e355eda7a144de536cf1721e92fa4fbbdea34437ff8f38b15565961b12f0d8a0e731b8935252570cbebfabeabb8e4d243dab02710c4fd2464d913
|
|
@@ -213,16 +213,16 @@ module EffectiveBootstrapHelper
|
|
|
213
213
|
|
|
214
214
|
content_tag(:ul, class: 'pagination') do
|
|
215
215
|
content_tag(:li, class: ['page-item', ('disabled' if page <= 1)].compact.join(' ')) do
|
|
216
|
-
link_to(url + params.merge('page' => page - 1).to_query, class: 'page-link', 'aria-label': 'Previous', title: 'Previous') do
|
|
216
|
+
link_to((page <= 1 ? '#' : url + params.merge('page' => page - 1).to_query), class: 'page-link', 'aria-label': 'Previous', title: 'Previous', 'aria-disabled': ('true' if page <= 1), 'tabindex': ('-1' if page <= 1)) do
|
|
217
217
|
content_tag(:span, '«'.html_safe, 'aria-hidden': true) + content_tag(:span, 'Previous', class: 'sr-only')
|
|
218
218
|
end
|
|
219
219
|
end + (1..last).map do |index|
|
|
220
220
|
content_tag(:li, class: ['page-item', ('active' if index == page)].compact.join(' '), title: "Page #{index}") do
|
|
221
221
|
link_to(index, (url + params.merge('page' => index).to_query), class: 'page-link')
|
|
222
222
|
end
|
|
223
|
-
end.join.html_safe +
|
|
223
|
+
end.join.html_safe +
|
|
224
224
|
content_tag(:li, class: ['page-item', ('disabled' if page >= last)].compact.join(' ')) do
|
|
225
|
-
link_to((page >= last ? '#' : url + params.merge('page' => page + 1).to_query), class: 'page-link', 'aria-label': 'Next', title: 'Next') do
|
|
225
|
+
link_to((page >= last ? '#' : url + params.merge('page' => page + 1).to_query), class: 'page-link', 'aria-label': 'Next', title: 'Next', 'aria-disabled': ('true' if page >= last), 'tabindex': ('-1' if page >= last)) do
|
|
226
226
|
content_tag(:span, '»'.html_safe, 'aria-hidden': true) + content_tag(:span, 'Next', class: 'sr-only')
|
|
227
227
|
end
|
|
228
228
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_bootstrap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-06-
|
|
11
|
+
date: 2019-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|