effective_datatables 4.26.0 → 4.26.1

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: e6af5d5e2542f1b4b587ad472f4be837fe81cf57cad38edf272986ba358710ae
4
- data.tar.gz: ada5f3e65dd9c40eedf6acda70db0e5955dc0b693fb1604392a1fbd5e7e98bba
3
+ metadata.gz: f6fd6b02564f438e0aa52250f202db9db27c5388e677b3e8758eecaa0a46ea82
4
+ data.tar.gz: b8fac9e5fbef111411e4b260e9d5ad4a2990cd7e5a8fbbda355b3baa1a2b4abc
5
5
  SHA512:
6
- metadata.gz: 6833350b97bb37061602f756c291b7fb30af237b0895952f6ac41ac4e4b565e03d7ce1ab5503e1ef4adc2fca3574edb325b81d5d3a9818515be2b039f3d580f0
7
- data.tar.gz: '0859ffbe2c11c23c58d2743d76bd99f23af3c67d28f3b888ab3ecd9f68e0a9b9c181b37ad7e93b406e7bde949c04566dd4b7d0bf7b1a183cb6fb0df7e13dbb22'
6
+ metadata.gz: c7b229e901f10e15b6a1991b68ef50d69575082657257095e811492a1efc830f05732e0747ea86087b57ee80cf0204bc5745e72d3eff7c4fedb654159a170d61
7
+ data.tar.gz: fd3f4b8d1f6ad92d25b27bf220addec9754efa774bd941e23e6c1c6201533d6758f275403ff1b4f532eac5967c965fecf02e6d7f5313e9dbcfcbf0fd5d8e5292
@@ -170,6 +170,11 @@ table.dataTable > thead {
170
170
  }
171
171
  }
172
172
 
173
+ // Filters
174
+ .effective-datatables-filter {
175
+ p { margin-bottom: 0; }
176
+ }
177
+
173
178
  // Processing div
174
179
  div.dataTables_wrapper div.dataTables_processing {
175
180
  margin: -26px 25% 0px 25%;
@@ -33,15 +33,15 @@
33
33
 
34
34
  = f.show_if :date_range, :year do
35
35
  = f.static_field :year, wrapper: { class: 'effective-datatables-filter' } do
36
- - date = f.object.start_date.beginning_of_year
36
+ - date = start_date.beginning_of_year
37
37
 
38
38
  = link_to '#', 'data-effective-datatables-filter-prev-year': date.advance(years: -1).strftime('%F') do
39
39
  = icon('arrow-left-circle')
40
40
  %span.prev-year= date.advance(years: -1).strftime('%Y')
41
41
 
42
- %span.start-date= f.object.start_date.strftime('%F')
42
+ %span.start-date= start_date.strftime('%F')
43
43
  to
44
- %span.end-date= f.object.end_date.strftime('%F')
44
+ %span.end-date= end_date.strftime('%F')
45
45
 
46
46
  = link_to '#', 'data-effective-datatables-filter-next-year': date.advance(years: 1).strftime('%F') do
47
47
  = icon('arrow-right-circle')
@@ -53,15 +53,15 @@
53
53
 
54
54
  = f.show_if :date_range, :month do
55
55
  = f.static_field :month, wrapper: { class: 'effective-datatables-filter' } do
56
- - date = f.object.start_date.beginning_of_month
56
+ - date = start_date.beginning_of_month
57
57
 
58
58
  = link_to '#', 'data-effective-datatables-filter-prev-month': date.advance(months: -1).strftime('%F') do
59
59
  = icon('arrow-left-circle')
60
60
  %span.prev-month= date.advance(months: -1).strftime('%b')
61
61
 
62
- %span.start-date= f.object.start_date.strftime('%F')
62
+ %span.start-date= start_date.strftime('%F')
63
63
  to
64
- %span.end-date= f.object.end_date.strftime('%F')
64
+ %span.end-date= end_date.strftime('%F')
65
65
 
66
66
  = link_to '#', 'data-effective-datatables-filter-next-month': date.advance(months: 1).strftime('%F') do
67
67
  = icon('arrow-right-circle')
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.26.0'.freeze
2
+ VERSION = '4.26.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.26.0
4
+ version: 4.26.1
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: 2024-04-12 00:00:00.000000000 Z
11
+ date: 2024-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails