Skip to content

Commit

Permalink
Fix whole_duration and working_duration totals
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Lécuelle committed Aug 10, 2017
1 parent 0e84b3c commit e46d6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/backend/interventions/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@
%span.title= Intervention.human_attribute_name(:working_duration)
%span.value
%i.picto.picto-timelapse
= human_duration(resource.working_duration)
= human_duration(resource.drivers_times(nature: :intervention))
.med-info
%span.title= Intervention.human_attribute_name(:whole_duration)
%span.value
%i.picto.picto-timelapse
= human_duration(resource.whole_duration)
= human_duration(resource.drivers_times(nature: nil))
.med-info
%span.title= I18n.t('enumerize.intervention_working_period.nature.preparation')
%span.value
Expand Down

0 comments on commit e46d6e1

Please sign in to comment.