Patch #25731 » use_only_one_if.patch
app/views/issues/show.html.erb | ||
---|---|---|
64 | 64 |
unless @issue.disabled_core_fields.include?('estimated_hours') |
65 | 65 |
rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours' |
66 | 66 |
end |
67 |
if User.current.allowed_to?(:view_time_entries, @project) |
|
68 |
if @issue.total_spent_hours > 0 |
|
69 |
rows.right l(:label_spent_time), issue_spent_hours_details(@issue), :class => 'spent-time' |
|
70 |
end |
|
67 |
if User.current.allowed_to?(:view_time_entries, @project) && @issue.total_spent_hours > 0 |
|
68 |
rows.right l(:label_spent_time), issue_spent_hours_details(@issue), :class => 'spent-time' |
|
71 | 69 |
end |
72 | 70 |
end %> |
73 | 71 |
<%= render_half_width_custom_fields_rows(@issue) %> |