Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad <vlad.bilanchuk@teamvoy.com>2017-09-22 19:20:44 +0300
committerSean McGivern <sean@gitlab.com>2017-10-13 13:41:49 +0300
commit945e0684afc3c22ac658dbb68005cb2ebf5ac51c (patch)
tree90cb7fdd46b13735002d0ecd4e8ae5d75c94201d /app/services/system_note_service.rb
parent5843a43c16e007193f5e26522d1e7368a0bdb2d7 (diff)
added date parameter for time tracking
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r--app/services/system_note_service.rb2
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'))