Patch #20661 » 20661-show-visible-spent-time.diff
| app/controllers/issues_controller.rb (working copy) | ||
|---|---|---|
|
@changesets.reverse!
|
||
|
end
|
||
|
if User.current.allowed_to?(:view_time_entries, @project)
|
||
|
Issue.load_visible_spent_hours([@issue])
|
||
|
Issue.load_visible_total_spent_hours([@issue])
|
||
|
end
|
||
|
respond_to do |format|
|
||
|
format.html {
|
||
|
@allowed_statuses = @issue.new_statuses_allowed_to(User.current)
|
||
| app/views/issues/show.html.erb (working copy) | ||
|---|---|---|
|
unless @issue.disabled_core_fields.include?('estimated_hours')
|
||
|
rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours'
|
||
|
end
|
||
|
if User.current.allowed_to_view_all_time_entries?(@project)
|
||
|
if User.current.allowed_to?(:view_time_entries, @project)
|
||
|
if @issue.total_spent_hours > 0
|
||
|
rows.right l(:label_spent_time), issue_spent_hours_details(@issue), :class => 'spent-time'
|
||
|
end
|
||
- « Previous
- 1
- 2
- 3
- 4
- Next »