diff options
author | Vlad <vlad.bilanchuk@teamvoy.com> | 2017-09-22 19:20:44 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-10-13 13:41:49 +0300 |
commit | 945e0684afc3c22ac658dbb68005cb2ebf5ac51c (patch) | |
tree | 90cb7fdd46b13735002d0ecd4e8ae5d75c94201d /app/services/system_note_service.rb | |
parent | 5843a43c16e007193f5e26522d1e7368a0bdb2d7 (diff) |
added date parameter for time tracking
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r-- | app/services/system_note_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index a52dce6cb4b..0bce20ae5b7 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -195,9 +195,11 @@ module SystemNoteService if time_spent == :reset body = "removed time spent" else + spent_at = noteable.spent_at parsed_time = Gitlab::TimeTrackingFormatter.output(time_spent.abs) action = time_spent > 0 ? 'added' : 'subtracted' body = "#{action} #{parsed_time} of time spent" + body << " at #{spent_at}" if spent_at end create_note(NoteSummary.new(noteable, project, author, body, action: 'time_tracking')) |