diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-11-06 14:36:21 +0300 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2018-11-06 15:40:16 +0300 |
commit | 780f51eaf86a613402902668ac40c36fe762d510 (patch) | |
tree | c99e5ac6e71fdbddb37a0c76e08ecbe7345dcd1e /app | |
parent | 222b0f08e33eb33217dce8ba7fc064a8567c5684 (diff) |
Use reference prefix for issues and merge requests in the event feed title
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/events_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb index 90851a80b61..373027c66ec 100644 --- a/app/helpers/events_helper.rb +++ b/app/helpers/events_helper.rb @@ -91,11 +91,11 @@ module EventsHelper words << "##{event.target_iid}" if event.target_iid words << "in" elsif event.merge_request? - words << "!#{event.target_iid}:" if event.target_iid + words << "#{Issue.reference_prefix}#{event.target_iid}:" if event.target_iid words << event.target.title if event.target.respond_to?(:title) words << "at" elsif event.target - words << "##{event.target_iid}:" + words << "#{MergeRequest.reference_prefix}#{event.target_iid}:" words << event.target.title if event.target.respond_to?(:title) words << "at" end |