hierarchical_menu 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +4 -0
- data/lib/hmenu/constants.rb +1 -1
- data/lib/hmenu/node.rb +5 -5
- metadata +6 -4
data/Changelog
CHANGED
data/lib/hmenu/constants.rb
CHANGED
data/lib/hmenu/node.rb
CHANGED
@@ -55,7 +55,7 @@ module HMenu
|
|
55
55
|
|
56
56
|
hmenu_content_class = "hmenu-content"
|
57
57
|
|
58
|
-
hmenu_content_class << " hmenu-root" if
|
58
|
+
hmenu_content_class << " hmenu-root" if is_root?
|
59
59
|
|
60
60
|
if o
|
61
61
|
hmenu_content_class << ' ' << o[:extra_class] if o[:extra_class]
|
@@ -71,9 +71,9 @@ module HMenu
|
|
71
71
|
s << "<#{ctag} class=\"#{hmenu_content_class}\">" << name.capitalize << "</#{ctag}>"
|
72
72
|
end
|
73
73
|
|
74
|
-
if
|
74
|
+
if has_children?
|
75
75
|
|
76
|
-
if
|
76
|
+
if is_root?
|
77
77
|
s += '<ul class="hmenu">'
|
78
78
|
else
|
79
79
|
s += "<ul>"
|
@@ -87,12 +87,12 @@ module HMenu
|
|
87
87
|
end
|
88
88
|
|
89
89
|
css_li_class =
|
90
|
-
child.
|
90
|
+
child.has_children? ?
|
91
91
|
'hmenu-submenu' :
|
92
92
|
'hmenu-item'
|
93
93
|
css_li_class << ' ' << o[:extra_class] if o and o[:extra_class]
|
94
94
|
css_bullet_class =
|
95
|
-
child.
|
95
|
+
child.has_children? ?
|
96
96
|
'hmenu-bullet' :
|
97
97
|
'hmenu-bullet-nochildren'
|
98
98
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Guido De Rosa
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-09
|
17
|
+
date: 2010-10-09 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -27,7 +27,9 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
29
|
- 0
|
30
|
-
|
30
|
+
- 8
|
31
|
+
- 0
|
32
|
+
version: 0.8.0
|
31
33
|
type: :runtime
|
32
34
|
version_requirements: *id001
|
33
35
|
description: Ruby Tree based hierarchical menus with HTML output and JavaScript show/hide
|