Commit 0ec2ee71 authored by Robert Speicher's avatar Robert Speicher
Browse files

Rename `Event#note_project_snippet?` to `project_snippet_note?`

parent b4171aba3ca8
......@@ -93,7 +93,7 @@ def event_feed_url(event)
namespace_project_commit_path(event.project.namespace, event.project,
event.note_commit_id,
anchor: dom_id(event.target))
elsif event.note_project_snippet?
elsif event.project_snippet_note?
namespace_project_snippet_path(event.project.namespace,
event.project, event.note_target)
else
......@@ -156,7 +156,7 @@ def event_note_title_html(event)
) do
"#{event.note_target_type} #{event.note_short_commit_id}"
end
elsif event.note_project_snippet?
elsif event.project_snippet_note?
link_to(namespace_project_snippet_path(event.project.namespace,
event.project,
event.note_target), title: event.project.name) do
......
......@@ -286,7 +286,7 @@ def issue_note?
note? && target && target.for_issue?
end
def note_project_snippet?
def project_snippet_note?
target.for_snippet?
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