active_storage_dashboard 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbebd4ee29d4f80557b8a131ef640d90ec32df63a925e9d9884f226cd51eab32
4
- data.tar.gz: 71997cfcb933cfc020f58ebed2f3863fe20281a363f1375dd786e4056fc95e60
3
+ metadata.gz: 65aed8243869ff130f773c0cf62c7a0b8c71793c45f67a295f9fc8f164214005
4
+ data.tar.gz: d01b095dfd47ee0e216ec2ef335c0d9d02a68d67a0cc4e2a597ac5863bf2177c
5
5
  SHA512:
6
- metadata.gz: eb1b00cb58b027a83cc37f9dc812a7e4fa90a161b5e19aa8c23639616c9a1067be780746686f243b8e25476e678fc6b8a070b2bf7c2ebf1f4c923732ea54e661
7
- data.tar.gz: 9da2865130e1acb3e325331ee6a9a2899cfe859c8f518cd49fb32c8a1462fec2b8af3072b84eed471998927c03e55a71f4dbc65ad12e7216cab9c120e812d4ea
6
+ metadata.gz: d1137d4817d47dde4f20570eb684bb146423fd00c278bf80a5754c0092908a7b649f26f33e2f447c4c386da1269680d548f6b890dd91a250ccb4b544a347afce
7
+ data.tar.gz: 33593efb0dc6a704d8af69c07723c16d72f3f46302fc40ec8a593dbdd75a6393ade2a172881eefa7efc7a0e353b03b440ca0a68fb4b990f7ed0ef7ff9af399a3
@@ -51,7 +51,7 @@ module ActiveStorageDashboard
51
51
  html = []
52
52
 
53
53
  if current_page > 1
54
- html << link_to('« Previous', url_for(use_route: "active_storage_dashboard", page: current_page - 1), class: 'pagination-link')
54
+ html << link_to('« Previous', "#{request.path}?page=#{current_page - 1}", class: 'pagination-link')
55
55
  else
56
56
  html << content_tag(:span, '« Previous', class: 'pagination-link disabled')
57
57
  end
@@ -66,7 +66,7 @@ module ActiveStorageDashboard
66
66
 
67
67
  # First page
68
68
  if window_start > 1
69
- html << link_to('1', url_for(use_route: "active_storage_dashboard", page: 1), class: 'pagination-link')
69
+ html << link_to('1', "#{request.path}?page=1", class: 'pagination-link')
70
70
  html << content_tag(:span, '...', class: 'pagination-ellipsis') if window_start > 2
71
71
  end
72
72
 
@@ -75,18 +75,18 @@ module ActiveStorageDashboard
75
75
  if page == current_page
76
76
  html << content_tag(:span, page, class: 'pagination-link current')
77
77
  else
78
- html << link_to(page, url_for(use_route: "active_storage_dashboard", page: page), class: 'pagination-link')
78
+ html << link_to(page, "#{request.path}?page=#{page}", class: 'pagination-link')
79
79
  end
80
80
  end
81
81
 
82
82
  # Last page
83
83
  if window_end < total_pages
84
84
  html << content_tag(:span, '...', class: 'pagination-ellipsis') if window_end < total_pages - 1
85
- html << link_to(total_pages, url_for(use_route: "active_storage_dashboard", page: total_pages), class: 'pagination-link')
85
+ html << link_to(total_pages, "#{request.path}?page=#{total_pages}", class: 'pagination-link')
86
86
  end
87
87
 
88
88
  if current_page < total_pages
89
- html << link_to('Next »', url_for(use_route: "active_storage_dashboard", page: current_page + 1), class: 'pagination-link')
89
+ html << link_to('Next »', "#{request.path}?page=#{current_page + 1}", class: 'pagination-link')
90
90
  else
91
91
  html << content_tag(:span, 'Next »', class: 'pagination-link disabled')
92
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_storage_dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Panasiti