2013-03-01 20:38:24 -05:00
|
|
|
<% @context_charts.each do |chart| %><%=
|
|
|
|
|
render :partial => 'chart', :locals => {:chart => chart}
|
|
|
|
|
-%><% end %>
|
2007-09-14 05:44:01 +00:00
|
|
|
|
2008-07-25 20:56:48 +02:00
|
|
|
<br style="clear:both">
|
|
|
|
|
|
2007-09-14 05:44:01 +00:00
|
|
|
<div class="stats_module">
|
2010-10-31 21:27:13 +08:00
|
|
|
<h3><%= t('stats.top5_contexts') %></h3>
|
2007-09-13 03:21:37 +00:00
|
|
|
<%
|
|
|
|
|
1.upto 5 do |i|
|
2012-04-11 21:09:46 +02:00
|
|
|
%><%=i-%> -
|
2012-04-16 13:17:59 +02:00
|
|
|
<%= i <= @actions_per_context.size ?
|
|
|
|
|
link_to(@actions_per_context[i-1]['name'], {:controller => "contexts", :action => "show", :id => @actions_per_context[i-1]['id']}) :
|
|
|
|
|
t('common.not_available_abbr')%>
|
2007-09-13 03:21:37 +00:00
|
|
|
(
|
2012-04-11 21:09:46 +02:00
|
|
|
<%= i <= @actions_per_context.size ? @actions_per_context[i-1]['total'] : t('common.not_available_abbr')%>
|
2007-09-13 03:21:37 +00:00
|
|
|
)
|
|
|
|
|
<br/><%
|
|
|
|
|
end
|
2012-04-11 21:09:46 +02: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.top5_visible_contexts_with_incomplete_actions') %></h3>
|
2007-09-13 03:21:37 +00:00
|
|
|
<%
|
|
|
|
|
1.upto 5 do |i|
|
|
|
|
|
%><%=i-%> -
|
2012-04-16 13:17:59 +02:00
|
|
|
<%= i <= @running_actions_per_context.size ?
|
|
|
|
|
link_to(@running_actions_per_context[i-1]['name'], {:controller => "contexts", :action => "show", :id => @running_actions_per_context[i-1]['id']}) :
|
|
|
|
|
t('common.not_available_abbr')-%>
|
2007-09-13 03:21:37 +00:00
|
|
|
(
|
2012-04-11 21:09:46 +02:00
|
|
|
<%= i <= @running_actions_per_context.size ? @running_actions_per_context[i-1]['total'] : t('common.not_available_abbr')-%>
|
2007-09-13 03:21:37 +00:00
|
|
|
)
|
|
|
|
|
<br/><%
|
|
|
|
|
end
|
2012-04-11 21:09:46 +02:00
|
|
|
-%>
|
2013-03-01 20:38:24 -05:00
|
|
|
</div>
|