yui-on-rails 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/yui-on-rails/tabs.rb +3 -3
- data/yui-on-rails.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/yui-on-rails/tabs.rb
CHANGED
@@ -17,9 +17,9 @@ module YuiOnRails
|
|
17
17
|
yield self
|
18
18
|
end
|
19
19
|
|
20
|
-
def create(tab_id,tab_text,options={},&block)
|
20
|
+
def create(tab_id,tab_text,li_options={},options={},&block)
|
21
21
|
raise "Block needed for TabsRenderer#CREATE" unless block_given?
|
22
|
-
@tabs << [ tab_id, tab_text, options, block ]
|
22
|
+
@tabs << [ tab_id, tab_text, options, block, li_options ]
|
23
23
|
end
|
24
24
|
|
25
25
|
def render
|
@@ -30,7 +30,7 @@ module YuiOnRails
|
|
30
30
|
def render_tabs
|
31
31
|
content_tag :ul, :class=>"yui-nav" do
|
32
32
|
@tabs.collect do |tab|
|
33
|
-
content_tag(:li,link_to(content_tag(:em, tab[1]
|
33
|
+
content_tag(:li,link_to(content_tag(:em, tab[1],tab[4]), "##{tab[0]}"))
|
34
34
|
end.join
|
35
35
|
end
|
36
36
|
end
|
data/yui-on-rails.gemspec
CHANGED