radiant-navigation-extension 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/navigation/tags/core.rb +2 -2
- data/lib/navigation/tags/helpers.rb +1 -1
- data/radiant-navigation-extension.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.3
|
data/lib/navigation/tags/core.rb
CHANGED
@@ -27,7 +27,7 @@ module Navigation
|
|
27
27
|
allowed_children = child_page.children.delete_if{ |c| not_allowed?(tag,c) }
|
28
28
|
|
29
29
|
if tag.attr['expand_all'] or current_page.url.starts_with?(child_page.url)
|
30
|
-
if allowed_children.present? and depth.
|
30
|
+
if allowed_children.present? and depth.to_i > 0 and child_page.class_name != 'ArchivePage'
|
31
31
|
r << %{<ul>}
|
32
32
|
child_page.children.each do |child|
|
33
33
|
depth -= 1
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-navigation-extension}
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.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 = ["Phil Schilter", "Dirk Kelly"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-12-08}
|
13
13
|
s.description = %q{Navigation provides a way to generate navigation (with useful classes)}
|
14
14
|
s.email = %q{dk@dirkkelly.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-navigation-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 3
|
10
|
+
version: 2.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Phil Schilter
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-12-08 00:00:00 +08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|