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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-01 17:15:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-01 17:15:38 +0300
commit28b374eea4e2890514067ac7875b4c1d252c5cdd (patch)
tree9fe30ae35df4b83cee000e1a0880b390d88d80f0 /app/helpers
parentc8fd9c521b89b98797cfd6e3a51cae6955129c20 (diff)
Add latest changes from gitlab-org/gitlab@15-3-stable-ee
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/events_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb
index b35dc3b00cb..bcddb889cf4 100644
--- a/app/helpers/events_helper.rb
+++ b/app/helpers/events_helper.rb
@@ -88,6 +88,12 @@ module EventsHelper
end
end
+ def event_target_path(event)
+ return Gitlab::UrlBuilder.build(event.target, only_path: true) if event.work_item?
+
+ event.target_link_options
+ end
+
def event_feed_title(event)
words = []
words << event.author_name