radiant-banner_rotator-extension 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -11,11 +11,14 @@ module Admin::BannersHelper
11
11
  def pages_for_select
12
12
  @pages_for_select ||= begin
13
13
  collect_children = lambda do |page|
14
- [page] + (page.children.any? ? page.children.map(&collect_children) : [])
14
+ if page.show_banner
15
+ [page] + (page.children.any? ? page.children.map(&collect_children) : [])
16
+ else
17
+ (page.children.any? ? page.children.map(&collect_children) : [])
18
+ end
15
19
  end
16
20
  collect_children[Page.find_by_parent_id(nil)].flatten.uniq.map do |page|
17
- name = page.parent ? "#{'--' * page.ancestors.size} #{page.title}" : page.title
18
- [name, page.id]
21
+ ["#{page.path} - '#{page.title}'", page.id]
19
22
  end
20
23
  end
21
24
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "radiant-banner_rotator-extension"
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew vonderLuft", "Sean Cribbs"]
12
- s.date = "2013-02-16"
12
+ s.date = "2013-04-08"
13
13
  s.description = "Allows addition and independent management of rotating banners on pages."
14
14
  s.email = "avonderluft@avlux.net"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-banner_rotator-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew vonderLuft
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-02-16 00:00:00 Z
19
+ date: 2013-04-08 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  requirement: &id001 !ruby/object:Gem::Requirement