mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
Extract time to complete partial
This commit is contained in:
parent
62336f94cd
commit
27ba50b460
2 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,4 @@
|
|||
<p><%= t('stats.actions_avg_completion_time', :count => (actions.ttc.avg*10).round/10.0) %>
|
||||
<%= t('stats.actions_min_max_completion_days', :max => (actions.ttc.max*10).round/10.0, :min => (actions.ttc.min*10).round/10.0) %>
|
||||
<%= t('stats.actions_min_completion_time', :time => actions.ttc.min_sec) %></p>
|
||||
<%= render :partial => 'time_to_complete', :locals => {:ttc => actions.ttc} -%>
|
||||
|
||||
<p><%= t('stats.actions_actions_avg_created_30days', :count => (actions.created_last30days*10.0/30.0).round/10.0 )%>
|
||||
<%= t('stats.actions_avg_completed_30days', :count => (actions.done_last30days*10.0/30.0).round/10.0 )%>
|
||||
|
|
|
|||
4
app/views/stats/_time_to_complete.html.erb
Normal file
4
app/views/stats/_time_to_complete.html.erb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<p><%= t('stats.actions_avg_completion_time', :count => (ttc.avg*10).round/10.0) %>
|
||||
<%= t('stats.actions_min_max_completion_days', :max => (ttc.max*10).round/10.0, :min => (ttc.min*10).round/10.0) %>
|
||||
<%= t('stats.actions_min_completion_time', :time => ttc.min_sec) %></p>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue