Commit 780f51ea authored by George Tsiolis's avatar George Tsiolis

Use reference prefix for issues and merge requests in the event feed title

parent 222b0f08
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment