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 +1 -1
- data/app/helpers/admin/banners_helper.rb +6 -3
- data/radiant-banner_rotator-extension.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
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
|
-
|
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
|
-
|
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.
|
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-
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
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-
|
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
|