mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-03 07:48:50 +01:00
fix #1181. The project listing now had the small drag handle and all the controls to the left.
This commit is contained in:
parent
8b13ee88ab
commit
e935066c18
6 changed files with 18 additions and 28 deletions
|
|
@ -455,7 +455,7 @@ class StatsController < ApplicationController
|
|||
@completed_actions = current_user.todos.completed.find(:all, { :select => "completed_at, created_at" })
|
||||
|
||||
actions_sum, actions_max = 0,0
|
||||
actions_min = @completed_actions.first.completed_at - @completed_actions.first.created_at
|
||||
actions_min = @completed_actions.first ? @completed_actions.first.completed_at - @completed_actions.first.created_at : 0
|
||||
|
||||
@completed_actions.each do |r|
|
||||
actions_sum += (r.completed_at - r.created_at)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue