Fix atom feed links
This commit is contained in:
parent
3ad931ca92
commit
545dc7e47d
3 changed files with 4 additions and 4 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue