diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-21 18:03:23 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-23 18:11:39 +0300 |
commit | 9c60354a6a7e2f0249719b4c0cf929c5d8ebc6e2 (patch) | |
tree | a04cf70072271fc4eec67359ba8ad6e1c7f6e302 /app/views/projects/show.atom.builder | |
parent | a6dfd065ca9de2e421425a5126c68bf8949ce110 (diff) |
Make links and titles of atom feeds consistent.
Diffstat (limited to 'app/views/projects/show.atom.builder')
-rw-r--r-- | app/views/projects/show.atom.builder | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/show.atom.builder b/app/views/projects/show.atom.builder index c2d909d7ebd..0e31720ebcf 100644 --- a/app/views/projects/show.atom.builder +++ b/app/views/projects/show.atom.builder @@ -1,9 +1,9 @@ xml.instruct! xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do - xml.title "Project feed - #{@project.name}" - xml.link href: namespace_project_path(@project.namespace, @project, :atom), rel: "self", type: "application/atom+xml" - xml.link href: namespace_project_path(@project.namespace, @project), rel: "alternate", type: "text/html" - xml.id projects_url + 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, private_token: current_user.private_token), 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? @events.each do |event| |