Commit bcc82511 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Split complex method EventsHelper#event_feed_url.

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 85771063
...@@ -108,6 +108,11 @@ module EventsHelper ...@@ -108,6 +108,11 @@ module EventsHelper
end end
end end
elsif event.push? elsif event.push?
push_event_feed_url(event)
end
end
def push_event_feed_url(event)
if event.push_with_commits? && event.md_ref? if event.push_with_commits? && event.md_ref?
if event.commits_count > 1 if event.commits_count > 1
namespace_project_compare_url(event.project.namespace, event.project, namespace_project_compare_url(event.project.namespace, event.project,
...@@ -122,7 +127,6 @@ module EventsHelper ...@@ -122,7 +127,6 @@ module EventsHelper
event.ref_name) event.ref_name)
end end
end end
end
def event_feed_summary(event) def event_feed_summary(event)
if event.issue? if event.issue?
......
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