summaryrefslogtreecommitdiff
path: root/app/decorators
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-10-08 14:17:46 +0300
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-10-08 14:17:46 +0300
commitbcdb168709ac03c7a7e00f440dcd47f2538894e3 (patch)
tree1d7efff3b3584b4bebda17faa3b196c572a5eb01 /app/decorators
parent624abdfc72f57da5650e239c8dd20e14f2f9a186 (diff)
downloadgitlab-ce-bcdb168709ac03c7a7e00f440dcd47f2538894e3.tar.gz
Fix dashboard atom feed routes
Diffstat (limited to 'app/decorators')
-rw-r--r--app/decorators/event_decorator.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/decorators/event_decorator.rb b/app/decorators/event_decorator.rb
index b2f9c439589..1b0ad0da28f 100644
--- a/app/decorators/event_decorator.rb
+++ b/app/decorators/event_decorator.rb
@@ -24,15 +24,14 @@ class EventDecorator < ApplicationDecorator
elsif self.push?
if self.push_with_commits?
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
- h.project_commit_path(self.project, :id => self.last_commit.id)
+ h.project_commit_url(self.project, :id => self.last_commit.id)
end
else
- h.project_commits_url(self.project, ref: self.ref_name)
+ h.project_commits_url(self.project, self.ref_name)
end
end
-
end
def feed_summary