mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
Show estimated time on the overview page as well as spent time (#30464).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17838 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -158,6 +158,7 @@ class ProjectsController < ApplicationController
|
||||
|
||||
if User.current.allowed_to_view_all_time_entries?(@project)
|
||||
@total_hours = TimeEntry.visible.where(cond).sum(:hours).to_f
|
||||
@total_estimated_hours = Issue.visible.where(cond).sum(:estimated_hours).to_f
|
||||
end
|
||||
|
||||
@key = User.current.rss_key
|
||||
|
||||
Reference in New Issue
Block a user