effective_bootstrap 0.5.14 → 0.5.15

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
2
  SHA256:
3
- metadata.gz: a22604e28dbee3070df8d7944ece53ab87516e4b73bdca830334eb32bf65b78a
4
- data.tar.gz: e544a195ef852cc0830d0aab82445a018a021ea4560a57cad6c55a42829cb3c2
3
+ metadata.gz: 8f7d80b88762b5afd5af4d9b7d7b014c4dfe135e12f13d0a595a7469afbe5109
4
+ data.tar.gz: b9b44adbb10b5be1e1a381863df97f239243d28e65cfbf40b4c2754e9a96db8d
5
5
  SHA512:
6
- metadata.gz: e20bacf7e6b0ec05e1b8d885e27b2e1a63b603dac1066f9085a0cd70245d59428b083ec5f741747b48c21f942d02bd67a677affaeda07c498df07723326f91bc
7
- data.tar.gz: 4f200c3ebec853609bc632cf245a296284bba25cdab214f9f0fa58c8336edeb4867e20fa6df9c87dbaf616583c28c23e7874ef69525002926b9c29c27a83ff2c
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, '&laquo;'.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, '&raquo;'.html_safe, 'aria-hidden': true) + content_tag(:span, 'Next', class: 'sr-only')
227
227
  end
228
228
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.5.14'.freeze
2
+ VERSION = '0.5.15'.freeze
3
3
  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.14
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-06 00:00:00.000000000 Z
11
+ date: 2019-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails