tracks/app/views/stats/index.html.erb
Katrina Owen b5868d5c70 Use tag cloud objects in view
This allows us to not set the individual instance variables for the tag
cloud attributes.
2013-02-28 22:00:23 -05:00

26 lines
637 B
Text
Executable file

<div class="stats_content">
<h2><%= t('stats.totals') %></h2>
<%= render :partial => 'totals' -%>
<% unless current_user.todos.empty? -%>
<h2><%= t('stats.actions') %></h2>
<%= render :partial => 'actions' -%>
<h2><%= t('stats.contexts') %></h2>
<%= render :partial => 'contexts' -%>
<h2><%= t('stats.projects') %></h2>
<%= render :partial => 'projects' -%>
<h2><%= t('stats.tags') %></h2>
<%= render :partial => 'tags', :locals => {:tag_cloud => @tag_cloud, :tag_cloud_90days => @tag_cloud_90days} -%>
<% else -%>
<p><%= t('stats.more_stats_will_appear') %></p>
<% end -%>
</div>