Fix atom feed links
This commit is contained in:
parent
3ad931ca92
commit
545dc7e47d
3 changed files with 4 additions and 4 deletions
|
@ -19,5 +19,5 @@
|
|||
- if current_page?(project_commits_path(@project)) && current_user.private_token
|
||||
%li.right
|
||||
%span.rss-icon
|
||||
= link_to project_commits_path(@project, :atom, { private_token: current_user.private_token, ref: @ref }), title: "Feed" do
|
||||
= link_to project_commits_path(@project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Feed" do
|
||||
= image_tag "rss_ui.png", title: "feed"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
xml.instruct!
|
||||
xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do
|
||||
xml.title "Recent commits to #{@project.name}:#{@ref}"
|
||||
xml.link :href => project_commits_url(@project, :atom, :ref => @ref), :rel => "self", :type => "application/atom+xml"
|
||||
xml.link :href => project_commits_url(@project), :rel => "alternate", :type => "text/html"
|
||||
xml.link :href => project_commits_url(@project, @ref, format: :atom), :rel => "self", :type => "application/atom+xml"
|
||||
xml.link :href => project_commits_url(@project, @ref), :rel => "alternate", :type => "text/html"
|
||||
xml.id project_commits_url(@project)
|
||||
xml.updated @commits.first.committed_date.strftime("%Y-%m-%dT%H:%M:%SZ") if @commits.any?
|
||||
|
||||
|
|
|
@ -19,5 +19,5 @@
|
|||
- if current_page?(project_commits_path(@project)) && current_user.private_token
|
||||
%li.right
|
||||
%span.rss-icon
|
||||
= link_to project_commits_path(@project, :atom, { private_token: current_user.private_token, ref: @ref }), title: "Feed" do
|
||||
= link_to project_commits_path(@project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Feed" do
|
||||
= image_tag "rss_ui.png", title: "feed"
|
||||
|
|
Loading…
Reference in a new issue