yui-on-rails 0.1.1 → 0.1.2
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.2
|
data/lib/yui-on-rails/tabs.rb
CHANGED
@@ -23,21 +23,21 @@ module YuiOnRails
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def render
|
26
|
-
content_tag(:div,(render_tabs+render_bodies),{:id=>:tabs}.merge(@options))
|
26
|
+
content_tag(:div,(render_tabs+render_bodies),{:id=>:tabs, :class=>"tabber"}.merge(@options))
|
27
27
|
end
|
28
28
|
|
29
29
|
private # ---------------------------------------------------------------------------
|
30
30
|
def render_tabs
|
31
31
|
content_tag :ul do
|
32
32
|
@tabs.collect do |tab|
|
33
|
-
content_tag(
|
33
|
+
content_tag(:li,link_to(content_tag(:em, tab[1] ), "##{tab[0]}"))
|
34
34
|
end.join
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
38
|
def render_bodies
|
39
39
|
@tabs.collect do |tab|
|
40
|
-
content_tag(
|
40
|
+
content_tag(:div,capture(&tab[3]),tab[2].merge(:id => tab[0]))
|
41
41
|
end.join.to_s
|
42
42
|
end
|
43
43
|
|
data/yui-on-rails.gemspec
CHANGED