fix #1181. The project listing now had the small drag handle and all the controls to the left.

This commit is contained in:
Reinier Balt 2012-01-27 10:55:39 +01:00
parent 8b13ee88ab
commit e935066c18
6 changed files with 18 additions and 28 deletions

View file

@ -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)