From d577dd92017e3dce612a0c30a156bae5389062e6 Mon Sep 17 00:00:00 2001 From: Katrina Owen Date: Thu, 28 Feb 2013 22:32:24 -0500 Subject: [PATCH] Completely whimsical whitespace adjustment. --- app/views/stats/_tags.html.erb | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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}_title") %>

<%= 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-%> +-%>