Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
545dc7e4
Commit
545dc7e4
authored
Sep 25, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix atom feed links
parent
3ad931ca
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/commits/_head.html.haml
app/views/commits/_head.html.haml
+1
-1
app/views/commits/show.atom.builder
app/views/commits/show.atom.builder
+2
-2
app/views/compare/_head.html.haml
app/views/compare/_head.html.haml
+1
-1
No files found.
app/views/commits/_head.html.haml
View file @
545dc7e4
...
...
@@ -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"
app/views/commits/show.atom.builder
View file @
545dc7e4
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?
...
...
app/views/compare/_head.html.haml
View file @
545dc7e4
...
...
@@ -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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment