2007-09-14 05:44:01 +00:00
|
|
|
<div class="stats_module">
|
2010-10-31 21:27:13 +08:00
|
|
|
<h3><%= t('stats.top10_projects') %></h3>
|
2007-10-05 19:20:18 +00:00
|
|
|
<% i=0
|
2012-04-11 20:21:28 +02:00
|
|
|
@projects_and_actions.each do |p|
|
2007-10-05 19:20:18 +00:00
|
|
|
i+=1 -%>
|
2012-04-16 13:17:59 +02:00
|
|
|
<%= i -%> - <%= link_to p.name, {:controller => "projects", :action => "show", :id => p.id}%> (<%=p.count %> <%= t('common.actions_midsentence', :count => p.count) %>) <br/>
|
2012-04-11 20:21:28 +02:00
|
|
|
<% end
|
2007-09-13 03:21:37 +00:00
|
|
|
if i < 10
|
2007-10-05 19:20:18 +00:00
|
|
|
i.upto 10 do |j| -%>
|
2012-04-11 21:09:46 +02:00
|
|
|
<%= i -%> - <%=t('common.not_available_abbr')%> (<%=t('common.not_available_abbr')%>) <br/>
|
2007-10-05 19:20:18 +00:00
|
|
|
<% end
|
2007-09-13 03:21:37 +00:00
|
|
|
end
|
2007-10-05 19:20:18 +00:00
|
|
|
-%>
|
2007-09-14 05:44:01 +00:00
|
|
|
</div>
|
2007-09-13 03:21:37 +00:00
|
|
|
|
2007-09-14 05:44:01 +00:00
|
|
|
<div class="stats_module">
|
2010-10-31 21:27:13 +08:00
|
|
|
<h3><%= t('stats.top10_projects_30days') %></h3>
|
2007-10-05 19:20:18 +00:00
|
|
|
<% i=0
|
2012-04-11 20:21:28 +02:00
|
|
|
@projects_and_actions_last30days.each do |p|
|
2007-10-05 19:20:18 +00:00
|
|
|
i+=1 -%>
|
2012-04-16 13:17:59 +02:00
|
|
|
<%= i -%> - <%= link_to p.name, {:controller => "projects", :action => "show", :id => p.id} %> (<%=p.count %> <%= t('common.actions_midsentence', :count => p.count) %>) <br/>
|
2012-04-11 20:21:28 +02:00
|
|
|
<% end
|
2007-09-13 03:21:37 +00:00
|
|
|
if i < 10
|
2007-10-05 19:20:18 +00:00
|
|
|
i.upto 10 do |j| -%>
|
2012-04-11 21:09:46 +02:00
|
|
|
<%= i -%> - <%=t('common.not_available_abbr')%> (<%=t('common.not_available_abbr')%>) <br/>
|
2007-10-05 19:20:18 +00:00
|
|
|
<% end
|
2007-09-13 03:21:37 +00:00
|
|
|
end
|
2007-10-05 19:20:18 +00:00
|
|
|
-%>
|
2007-09-14 05:44:01 +00:00
|
|
|
</div>
|
2007-09-13 03:21:37 +00:00
|
|
|
|
2007-09-14 05:44:01 +00:00
|
|
|
<div class="stats_module">
|
2010-10-31 21:27:13 +08:00
|
|
|
<h3><%= t('stats.top10_longrunning') %></h3>
|
2007-10-05 19:20:18 +00:00
|
|
|
<% i=0
|
2012-04-11 20:21:28 +02:00
|
|
|
@projects_and_runtime.each do |id, name, days|
|
2007-10-05 19:20:18 +00:00
|
|
|
i+=1 -%>
|
2012-04-16 13:17:59 +02:00
|
|
|
<%= i -%> - <%= link_to name, {:controller => "projects", :action => "show", :id => id} %> (<%=days %> <%= t('common.days_midsentence', :count => days) %>) <br/>
|
2007-10-05 19:20:18 +00:00
|
|
|
<% end -%>
|
2007-09-14 05:44:01 +00:00
|
|
|
</div>
|