diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb index 929f9a9c381..4ae3df3d16f 100644 --- a/app/helpers/events_helper.rb +++ b/app/helpers/events_helper.rb @@ -64,7 +64,18 @@ module EventsHelper project_issue_url(event.project, event.issue) elsif event.merge_request? project_merge_request_url(event.project, event.merge_request) - + elsif event.note? + if event.note_target + if event.note_commit? + project_commit_path(event.project, event.note_commit_id, anchor: dom_id(event.target)) + elsif event.note_project_snippet? + project_snippet_path(event.project, event.note_target) + else + event_note_target_path(event) + end + elsif event.wall_note? + project_wall_path(event.project) + end elsif event.push? if event.push_with_commits? if event.commits_count > 1