tracks/app/views/stats/index.html.erb
Katrina Owen 2321d1f2a3 Call the cloud partial twice
Delete half the partial, and use each of the cloud objects to call it.
2013-02-28 22:03:39 -05:00

27 lines
712 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, :key => ''} -%>
<%= render :partial => 'tags', :locals => {:tag_cloud => @tag_cloud_90days, :key => '_90days'} -%>
<% else -%>
<p><%= t('stats.more_stats_will_appear') %></p>
<% end -%>
</div>