mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-16 04:08:08 +01:00
Updated to svn tags/tracks-1.6
This commit is contained in:
parent
103fcb8049
commit
02496f2d44
2274 changed files with 0 additions and 0 deletions
31
app/views/stats/_contexts.rhtml
Executable file
31
app/views/stats/_contexts.rhtml
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
<%= render :partial => 'chart', :locals => {:width => @pie_width, :height => @pie_height, :data => url_for(:action => 'context_total_actions_data')} -%>
|
||||
|
||||
<%= render :partial => 'chart', :locals => {:width => @pie_width, :height => @pie_height, :data => url_for(:action => 'context_running_actions_data')} -%>
|
||||
|
||||
<div class="stats_module">
|
||||
<h3>Top 5 Contexts</h3>
|
||||
<%
|
||||
1.upto 5 do |i|
|
||||
%><%=i-%> -
|
||||
<%= i <= @actions_per_context.size ? link_to(@actions_per_context[i-1]['name'], {:controller => "contexts", :action => "show", :id => @actions_per_context[i-1]['id']}) : "n/a"%>
|
||||
(
|
||||
<%= i <= @actions_per_context.size ? @actions_per_context[i-1]['total'] : "n/a"%>
|
||||
)
|
||||
<br/><%
|
||||
end
|
||||
-%>
|
||||
</div>
|
||||
|
||||
<div class="stats_module">
|
||||
<h3>Top 5 Visible Contexts with incomplete actions</h3>
|
||||
<%
|
||||
1.upto 5 do |i|
|
||||
%><%=i-%> -
|
||||
<%= 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']}) : "n/a"-%>
|
||||
(
|
||||
<%= i <= @running_actions_per_context.size ? @running_actions_per_context[i-1]['total'] : "n/a"-%>
|
||||
)
|
||||
<br/><%
|
||||
end
|
||||
-%>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue