Fix dashboard atom feed routes
This commit is contained in:
parent
624abdfc72
commit
bcdb168709
1 changed files with 3 additions and 4 deletions
|
@ -24,15 +24,14 @@ class EventDecorator < ApplicationDecorator
|
||||||
elsif self.push?
|
elsif self.push?
|
||||||
if self.push_with_commits?
|
if self.push_with_commits?
|
||||||
if self.commits_count > 1
|
if self.commits_count > 1
|
||||||
h.compare_project_commits_path(self.project, :from => self.parent_commit.id, :to => self.last_commit.id)
|
h.project_compare_url(self.project, :from => self.parent_commit.id, :to => self.last_commit.id)
|
||||||
else
|
else
|
||||||
h.project_commit_path(self.project, :id => self.last_commit.id)
|
h.project_commit_url(self.project, :id => self.last_commit.id)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
h.project_commits_url(self.project, ref: self.ref_name)
|
h.project_commits_url(self.project, self.ref_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def feed_summary
|
def feed_summary
|
||||||
|
|
Loading…
Reference in a new issue