diff --git a/app/views/stats/_tags.html.erb b/app/views/stats/_tags.html.erb index e512c4e2..98140297 100755 --- a/app/views/stats/_tags.html.erb +++ b/app/views/stats/_tags.html.erb @@ -1,17 +1,19 @@
<%= t("stats.tag_cloud#{key}_description") %>
- -- <% if tag_cloud.tags.size < 1 +
+<% + if tag_cloud.empty? t('stats.no_tags_available') - else - tag_cloud.tags.each do |t| %> - <%= link_to t.name, tag_path(t.name), { - :style => "font-size: " + "#{tag_cloud.font_size(t)}pt", - :title => t.count.to_s+" #{t('common.actions_midsentence', :count => t.count)}"} - -%> <% + else + tag_cloud.tags.each do |t| +%><%= + link_to t.name, tag_path(t.name), { + :style => "font-size: " + "#{tag_cloud.font_size(t)}pt", + :title => "#{t.count} #{t('common.actions_midsentence', :count => t.count)}"} +-%><% + end end - end-%> +-%>