tracks/app/views/stats/index.html.erb

28 lines
890 B
Text
Raw Normal View History

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