trusty-festivity-extension 2.3.21 → 2.3.22
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b0fb52be7e9142c8559126c16c981305c3f1ea6
|
4
|
+
data.tar.gz: 5d36a37eef84930487b2d20a60fe096353ec1bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffe421e0976b9372e5ce2b6a39add8979f5ca882af93985e851c7ba1920d8a3f5f670499eb308f7cd5fc67aaabb2173d296c5d33fc133c7103c5ee87e91394c1
|
7
|
+
data.tar.gz: cec54d83d074111895b2a2ee4f9e4a4a1a7031b2d042d2a27b83ac829632d3fef00c714eb9570550214e1b27230473913ecd33a6a4be5abc2f1770ba50fa0003
|
@@ -5,7 +5,10 @@
|
|
5
5
|
.filter-type.toggler-root
|
6
6
|
%h4.filter-category.toggler-trigger{aria: {expanded: "false", controls: 'filters-list'}}
|
7
7
|
%span.category-text
|
8
|
-
|
8
|
+
- if current_site.date_filter?
|
9
|
+
Dates
|
10
|
+
-else
|
11
|
+
Times
|
9
12
|
%span.icon-chevron-down{:data => {'grunticon-embed' => true}}
|
10
13
|
%span.visually-hidden
|
11
14
|
Open/Close Filters
|
@@ -16,11 +19,7 @@
|
|
16
19
|
%li
|
17
20
|
%label{for: datetime.to_s}
|
18
21
|
%input.input-checkbox{type: "checkbox", id: datetime.to_s, value: datetime.to_s, checked: checked, data: {filter: "Date", sort: datetime.to_s}}
|
19
|
-
|
20
|
-
- unless current_date.to_date == datetime.to_date
|
21
|
-
- current_date = datetime
|
22
|
-
= current_date.display_as_date
|
23
|
-
= datetime.display
|
22
|
+
= datetime.display
|
24
23
|
- current_site.festivity_active_category_types.each do |type|
|
25
24
|
.filter-type.toggler-root
|
26
25
|
%h4.filter-category.toggler-trigger{aria: {expanded: "false", controls: 'filters-list'}}
|
@@ -34,7 +34,7 @@ module Festivity
|
|
34
34
|
def calculate_festival_datetimes
|
35
35
|
dates = [self.festivity_start_date]
|
36
36
|
advance_by = date_filter? ? {days: 1} : {hours: 1}
|
37
|
-
until dates.last >= self.festivity_end_date do
|
37
|
+
until dates.last.advance(advance_by) >= self.festivity_end_date do
|
38
38
|
dates << dates.last.advance(advance_by)
|
39
39
|
end
|
40
40
|
FestivityDatetimeFilterPresenter.new(dates, self.festivity_filter_type)
|