TracksApp/tracks

View on GitHub
app/views/stats/_tags.html.erb

Summary

Maintainability
Test Coverage
<div class="stats_module">
<h3><%= t("stats.tag_cloud#{key}_title") %></h3>
<p><%= t("stats.tag_cloud#{key}_description") %></p>
<p>
<%
  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: " + "#{font_size(tag_cloud, t)}pt",
        :title => "#{t.count} #{t('common.actions_midsentence', :count => t.count)}"}
-%> <%
      end
    end
-%>
</p>
</div>