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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65aed8243869ff130f773c0cf62c7a0b8c71793c45f67a295f9fc8f164214005
|
4
|
+
data.tar.gz: d01b095dfd47ee0e216ec2ef335c0d9d02a68d67a0cc4e2a597ac5863bf2177c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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',
|
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',
|
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,
|
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,
|
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 »',
|
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
|