public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
quick fix to tag cloud in sidebar
eldiablo (author)
Fri Apr 11 06:10:01 -0700 2008
commit  10f6a7fe500a9d9cdb9ba091258893db525d6c8f
tree    309f046474a08d347685378f400f0734429ce825
parent  fc909937dd4c622c1cb7177ddcef10b93ebc69ca
...
9
10
11
12
 
13
14
15
...
9
10
11
 
12
13
14
15
0
@@ -9,7 +9,7 @@ module Merb
0
       end
0
       divisor = ((max - min) / classes.size) + 1
0
       tags.each do |t|
0
- yield t.name, t.permalink, classes[(t.taggings.count.to_i - min) / divisor]
0
+ yield t, classes[(t.taggings.count.to_i - min) / divisor]
0
       end
0
     end
0
   end
...
10
11
12
13
14
 
 
15
16
17
18
...
10
11
12
 
 
13
14
15
16
17
18
0
@@ -10,8 +10,8 @@
0
 <% unless @tags.empty? %>
0
   <div style="margin-top: 20px">
0
     <h3>Tags</h3>
0
- <% tag_cloud @tags, %w(tag1 tag2 tag3 tag4 tag5) do |name, permalink, css_class| %>
0
- <%= link_to(name, url(:tag, permalink), :class => css_class) %>
0
+ <% tag_cloud @tags, %w(tag1 tag2 tag3 tag4 tag5) do |tag, css_class| %>
0
+ <%= link_to(tag.name, url(:tag, tag), :class => css_class) %>
0
     <% end %>
0
   </div>
0
 <% end %>
0
\ No newline at end of file

Comments

    No one has commented yet.