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
Léo-Paul Géneau
gitlab-ce
Commits
f96127bc
Commit
f96127bc
authored
May 25, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-remove-issue_to_atom' into 'master'
Remove `issue_to_atom` helper See merge request !4265
parents
c1167be2
7001842d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
28 deletions
+17
-28
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+0
-17
app/views/dashboard/issues.atom.builder
app/views/dashboard/issues.atom.builder
+1
-4
app/views/groups/issues.atom.builder
app/views/groups/issues.atom.builder
+1
-4
app/views/issues/_issue.atom.builder
app/views/issues/_issue.atom.builder
+14
-0
app/views/projects/issues/index.atom.builder
app/views/projects/issues/index.atom.builder
+1
-3
No files found.
app/helpers/issues_helper.rb
View file @
f96127bc
...
...
@@ -105,23 +105,6 @@ module IssuesHelper
return
'hidden'
if
issue
.
closed?
==
closed
end
def
issue_to_atom
(
xml
,
issue
)
xml
.
entry
do
xml
.
id
namespace_project_issue_url
(
issue
.
project
.
namespace
,
issue
.
project
,
issue
)
xml
.
link
href:
namespace_project_issue_url
(
issue
.
project
.
namespace
,
issue
.
project
,
issue
)
xml
.
title
truncate
(
issue
.
title
,
length:
80
)
xml
.
updated
issue
.
created_at
.
xmlschema
xml
.
media
:thumbnail
,
width:
"40"
,
height:
"40"
,
url:
image_url
(
avatar_icon
(
issue
.
author_email
))
xml
.
author
do
|
author
|
xml
.
name
issue
.
author_name
xml
.
email
issue
.
author_email
end
xml
.
summary
issue
.
title
end
end
def
merge_requests_sentence
(
merge_requests
)
# Sorting based on the `!123` or `group/project!123` reference will sort
# local merge requests first.
...
...
app/views/dashboard/issues.atom.builder
View file @
f96127bc
...
...
@@ -6,8 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.id issues_dashboard_url
xml.updated @issues.first.created_at.xmlschema if @issues.any?
@issues.each do |issue|
issue_to_atom(xml, issue)
end
xml << render(partial: 'issues/issue', collection: @issues) if @issues.any?
end
app/views/groups/issues.atom.builder
View file @
f96127bc
...
...
@@ -6,8 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.id issues_group_url
xml.updated @issues.first.created_at.xmlschema if @issues.any?
@issues.each do |issue|
issue_to_atom(xml, issue)
end
xml << render(partial: 'issues/issue', collection: @issues) if @issues.any?
end
app/views/issues/_issue.atom.builder
0 → 100644
View file @
f96127bc
xml.entry do
xml.id namespace_project_issue_url(issue.project.namespace, issue.project, issue)
xml.link href: namespace_project_issue_url(issue.project.namespace, issue.project, issue)
xml.title truncate(issue.title, length: 80)
xml.updated issue.created_at.xmlschema
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(issue.author_email))
xml.author do |author|
xml.name issue.author_name
xml.email issue.author_email
end
xml.summary issue.title
end
app/views/projects/issues/index.atom.builder
View file @
f96127bc
...
...
@@ -6,7 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.id namespace_project_issues_url(@project.namespace, @project)
xml.updated @issues.first.created_at.xmlschema if @issues.any?
@issues.each do |issue|
issue_to_atom(xml, issue)
end
xml << render(partial: 'issues/issue', collection: @issues) if @issues.any?
end
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