concerto_content_scheduling 0.0.2 → 0.0.3

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: b9b72b87adc706fd3bb03366b62587c3e4119f2b
4
- data.tar.gz: c9cd80dba07845a78a96f82120c7b915141cacab
3
+ metadata.gz: 9ea923f4eaa99424c696f63870952422de42eb03
4
+ data.tar.gz: a5260ab9d6e583dfb88c44f489eb169e3dd7dc4e
5
5
  SHA512:
6
- metadata.gz: 728947aa8e40e44807be760ee947c500e5db42e337a2bdce3622d647512aec342798404fb602a42e7a58866422ac2a515bf93a1bdd3b8c4b144e7986c159ee4b
7
- data.tar.gz: a4be00b3507de3912caf9cb33c4672e48e563630f84a6c458a4b1b2e89a33e4f50c92ae7eb993f2feb63d62d9dc6fc524e90d8c523b68046768bfa4f88b405bf
6
+ metadata.gz: de72529d368d9f4f77f16d3b8689ac3dc46b97f44874af5c4c8125788b4ea3107f7e175307112bd3be8f91de919fc3a11c78ec8f9b8a72abd25f823c62bbc146
7
+ data.tar.gz: 1f1b1fab3f7967c24ec0c937ab43db10ce4be55df715f45ef1a14b3a799563c1df95a2832f7c792e3e11f4966a381d9fc9110d65f539834cdb3cc5b035e5d63d
@@ -1,3 +1,3 @@
1
1
  <% if content.respond_to?(:has_schedule?) and content.has_schedule? %>
2
- <i class="icon-time"></i>
2
+ <i class="fa fa-clock-o"></i>
3
3
  <% end %>
@@ -32,6 +32,11 @@ module ConcertoContentScheduling
32
32
  @attributes.concat([:schedule_info => [:criteria, :start_time, :end_time]])
33
33
  end
34
34
 
35
+ # make sure dynamic content has the same schedule as it's parent item
36
+ add_controller_hook "DynamicContent", :alter_content, :after do
37
+ @new_attributes[:schedule_info] = @content.parent.schedule_info
38
+ end
39
+
35
40
  end
36
41
  end
37
42
  end
@@ -1,3 +1,3 @@
1
1
  module ConcertoContentScheduling
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concerto_content_scheduling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Concerto Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2015-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 2.2.2
165
+ rubygems_version: 2.4.5.1
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: Schedule content for different times of day.