Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-21 18:03:23 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-23 18:11:39 +0300
commit9c60354a6a7e2f0249719b4c0cf929c5d8ebc6e2 (patch)
treea04cf70072271fc4eec67359ba8ad6e1c7f6e302 /app/views/projects/show.atom.builder
parenta6dfd065ca9de2e421425a5126c68bf8949ce110 (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.builder8
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|