Index: app/controllers/projects_controller.rb =================================================================== --- app/controllers/projects_controller.rb (revision 17808) +++ app/controllers/projects_controller.rb (working copy) @@ -158,6 +158,7 @@ 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 Index: app/views/projects/show.html.erb =================================================================== --- app/views/projects/show.html.erb (revision 17808) +++ app/views/projects/show.html.erb (working copy) @@ -83,10 +83,15 @@ <% if User.current.allowed_to?(:view_time_entries, @project) %>
-

<%= l(:label_spent_time) %>

- <% if @total_hours.present? %> -

<%= l_hours(@total_hours) %>

- <% end %> +

<%= l(:label_time_tracking) %>

+

<% if User.current.allowed_to?(:log_time, @project) %> <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |