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: 0021aedb91c02447b86bd421ed5c0e27afec0daa
4
- data.tar.gz: 2e2098528c09c66cb0ba6e9fe9f99265dfe11cab
3
+ metadata.gz: 7b0fb52be7e9142c8559126c16c981305c3f1ea6
4
+ data.tar.gz: 5d36a37eef84930487b2d20a60fe096353ec1bb4
5
5
  SHA512:
6
- metadata.gz: 4475e903ddd10f6982aac4ca864f62fa54df909ed175808fff55a8358f80e634d7d3ea4deddaac782051d4d7ea303194637588d92fb58ac3e49b48ffc1d4d2b6
7
- data.tar.gz: b7ede02b8df405c4136340f05ff202ca03b620a36d495cbb735c2fee493c9bb13b33fea7f2a3619b3397f89cd822a77c78ea5546ea9f997ba3829e7baea26923
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
- Dates
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
- - unless current_site.date_filter?
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)
@@ -1,5 +1,5 @@
1
1
  module TrustyFestivityExtension
2
- VERSION = "2.3.21"
2
+ VERSION = "2.3.22"
3
3
  SUMMARY = "Festival microsite engine for Trusty CMS"
4
4
  DESCRIPTION = "Event management for arts festivals."
5
5
  URL = "http://github.com/pgharts/trusty-festivity-extension"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-festivity-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.21
4
+ version: 2.3.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Sipple