adds tag cloud [#8]
This commit is contained in:
5
app/views/shared/_tag_cloud.html.erb
Normal file
5
app/views/shared/_tag_cloud.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<div id="tag-cloud">
|
||||
<% tag_cloud Debate.tag_counts, %w[s m l] do |tag, css_class| %>
|
||||
<%= link_to "#{tag.name}(#{tag.taggings_count})", debates_path(tag: tag.name), class: css_class %>
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user