Commit 97e06bcf authored by Kyle Fazzari's avatar Kyle Fazzari

Update events helper to also return a URL for notes.

This fixes #304 since it was linking back to the dashboard feed
only as a result of it being given no URL at all for notes.
parent b1ce97d5
......@@ -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
......
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