diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-05-21 12:39:33 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-05-21 12:39:33 +0300 |
commit | 9a60441ce42f6f8cef2186fd53adfe4c694f2402 (patch) | |
tree | 71a610ddd07680f29de78a652002fd63732f7256 /app/views/projects/show.atom.builder | |
parent | 7298d05cc08b2cc2dc6453fc45d59d07de042869 (diff) |
Fix Atom feeds.
Diffstat (limited to 'app/views/projects/show.atom.builder')
-rw-r--r-- | app/views/projects/show.atom.builder | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/show.atom.builder b/app/views/projects/show.atom.builder index bb713dcafa5..242684e5c7c 100644 --- a/app/views/projects/show.atom.builder +++ b/app/views/projects/show.atom.builder @@ -1,7 +1,7 @@ xml.instruct! xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do xml.title "#{@project.name} activity" - xml.link href: namespace_project_url(@project.namespace, @project, format: :atom, private_token: current_user.private_token), rel: "self", type: "application/atom+xml" + xml.link href: namespace_project_url(@project.namespace, @project, format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml" xml.link href: namespace_project_url(@project.namespace, @project), rel: "alternate", type: "text/html" xml.id namespace_project_url(@project.namespace, @project) xml.updated @events.maximum(:updated_at).strftime("%Y-%m-%dT%H:%M:%SZ") if @events.any? |