tranzito_utils 1.1.10 → 1.1.12

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: 423402f724633bc8cd7c907d5d80633a6bf7efbd14a7d77c5738b9735cb673db
4
- data.tar.gz: 5468281cde4f1db9bff2d0cdcba731c13820da9cfba94502c216d0e9c7d4107a
3
+ metadata.gz: 6225dd26a675d3d9357600af537754b1aa3c43ec3d1077df6ad3473060afdf45
4
+ data.tar.gz: 48a2a2a880eb050a2731c44b6ecef3147dd1cfbab04df0ac2f15d36334f3fb68
5
5
  SHA512:
6
- metadata.gz: 5b313dead21a726851031c188a4926569757dc61e1e69347da97afa562b1c286b6f93bc2a0b4f2ba4bc697caf968e3e7f47a4b0c4169e6911b1f66444a5bdbbe
7
- data.tar.gz: f561ff9e50a3fd773b31893def71a6637d7d81eafd101c882110477e85f71b80c229a8024d1301a4aad97c37d9d206c920f3f0d38ccd91476854b439be24d366
6
+ metadata.gz: e205dc42491ab7432d51b0f1a7b07a852aa05f007a801675a52f52776ce0a1d994951da4b54c1bc5a43442031a4c0b4eea6a6b65e94c2aea39cd2de20e1238f0
7
+ data.tar.gz: 0a711ea2d82b6501b4669e25fc89584e9f9a75990de507469af4869f2e23fa49fa121cdd7f3d228d97a30bf114bf7b2d6d02b927bae5988e1af289c718b5bdfe
@@ -77,39 +77,43 @@ input[type=radio] {
77
77
  text-align: center;
78
78
  }
79
79
 
80
- .pagination-flex {
80
+ .pagination-container {
81
+ margin: 1.5rem 1rem;
82
+ display: flex;
83
+ flex-wrap: wrap;
84
+ }
85
+ .pagination-container .pagination-flex {
81
86
  display: flex;
82
87
  flex-wrap: wrap;
83
88
  opacity: 0.65;
84
89
  }
85
- .pagination-flex .pagination {
90
+ .pagination-container .pagination-flex .pagination {
86
91
  margin: 0.5rem 0.5rem 0 0;
87
92
  }
88
- .pagination-flex.pagination-sm a.page-link {
93
+ .pagination-container .pagination-flex.pagination-sm a.page-link {
89
94
  padding: 0.25rem 0.5rem;
90
95
  font-size: 0.875rem;
91
96
  }
92
- .pagination-flex .pagination-number,
93
- .pagination-flex .per-page {
97
+ .pagination-container .pagination-flex .pagination-number,
98
+ .pagination-container .pagination-flex .per-page {
94
99
  display: flex;
95
100
  flex-basis: 0;
96
101
  flex-grow: 1;
97
102
  margin-top: 0.5rem;
98
103
  }
99
- .pagination-flex .per-page {
104
+ .pagination-container .pagination-flex .per-page {
100
105
  min-width: 9rem;
101
106
  max-width: 9rem;
102
107
  }
103
- .pagination-flex .pagination-number {
108
+ .pagination-container .pagination-flex .pagination-number {
104
109
  margin-left: 0.5rem;
105
110
  }
106
- .pagination-flex .per-page-select {
111
+ .pagination-container .pagination-flex .per-page-select {
107
112
  margin-top: 0.5rem;
108
113
  width: 8rem;
109
114
  display: inline-block;
110
115
  }
111
-
112
- .pagination-number {
116
+ .pagination-container .pagination-number {
113
117
  margin: 1rem 0 0;
114
118
  }
115
119
 
@@ -1,36 +1,42 @@
1
- .pagination-flex {
1
+ .pagination-container {
2
+ margin: 1.5rem 1rem;
2
3
  display: flex;
3
4
  flex-wrap: wrap;
4
- opacity: 0.65; // Make it a little less prominent, it isn't the most important thing on the page
5
- .pagination {
6
- margin: 0.5rem 0.5rem 0 0;
7
- }
8
- &.pagination-sm a.page-link {
9
- padding: 0.25rem 0.5rem;
10
- font-size: 0.875rem;
11
- }
12
- .pagination-number,
13
- .per-page {
5
+
6
+ .pagination-flex {
14
7
  display: flex;
15
- flex-basis: 0;
16
- flex-grow: 1;
17
- margin-top: 0.5rem;
18
- }
19
- .per-page {
20
- min-width: 9rem;
21
- max-width: 9rem;
8
+ flex-wrap: wrap;
9
+ opacity: 0.65; // Make it a little less prominent, it isn't the most important thing on the page
10
+ .pagination {
11
+ margin: 0.5rem 0.5rem 0 0;
12
+ }
13
+ &.pagination-sm a.page-link {
14
+ padding: 0.25rem 0.5rem;
15
+ font-size: 0.875rem;
16
+ }
17
+ .pagination-number,
18
+ .per-page {
19
+ display: flex;
20
+ flex-basis: 0;
21
+ flex-grow: 1;
22
+ margin-top: 0.5rem;
23
+ }
24
+ .per-page {
25
+ min-width: 9rem;
26
+ max-width: 9rem;
27
+ }
28
+ .pagination-number {
29
+ margin-left: 0.5rem;
30
+ }
31
+
32
+ .per-page-select {
33
+ margin-top: 0.5rem; // Align with the pagination part
34
+ width: 8rem;
35
+ display: inline-block;
36
+ }
22
37
  }
38
+
23
39
  .pagination-number {
24
- margin-left: 0.5rem;
40
+ margin: 1rem 0 0;
25
41
  }
26
-
27
- .per-page-select {
28
- margin-top: 0.5rem; // Align with the pagination part
29
- width: 8rem;
30
- display: inline-block;
31
- }
32
- }
33
-
34
- .pagination-number {
35
- margin: 1rem 0 0;
36
42
  }
@@ -6,7 +6,7 @@
6
6
  -# override added to convert Created to Imported - for clarity in payroll_times
7
7
  - humanized_time_range_column_override ||= nil
8
8
 
9
- .row.mt-4.mb-4
9
+ .pagination-container
10
10
  - unless skip_total
11
11
  .col-md-5
12
12
  %p.pagination-number
@@ -25,7 +25,7 @@
25
25
  = humanized_time_range(@time_range)
26
26
  - unless skip_pagination
27
27
  .pagination-flex.justify-content-md-end{class: (skip_total ? "col-12" : "col-md-7")}
28
- = paginate collection
28
+ = paginate collection, outer_window: 1
29
29
  - if count > @per_page.to_i
30
30
  - per_pages = [10, 25, 50, 100, @per_page.to_i].uniq.sort
31
31
  = select_tag :per_page_select, options_for_select(per_pages.map { |i| ["#{i} / page", i] }, selected: @per_page), { class: "form-control per-page-select" }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TranzitoUtils
4
- VERSION = "1.1.10"
4
+ VERSION = "1.1.12"
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tranzito_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - willbarrettdev
8
8
  - sethherr
9
9
  - hafiz-ahmed
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-12-23 00:00:00.000000000 Z
13
+ date: 2023-01-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -103,7 +103,7 @@ licenses:
103
103
  metadata:
104
104
  homepage_uri: https://github.com/Tranzito/tranzito_utils
105
105
  source_code_uri: https://github.com/Tranzito/tranzito_utils
106
- post_install_message:
106
+ post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
109
109
  - lib
@@ -118,8 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.1.6
122
- signing_key:
121
+ rubygems_version: 3.1.2
122
+ signing_key:
123
123
  specification_version: 4
124
124
  summary: Ruby gem contain several modules mainly containing the helpers, concerns
125
125
  and services for personal use by Tranzito