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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7001842d
Commit
7001842d
authored
May 23, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `issue_to_atom` helper
parent
c002a560
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 @
7001842d
...
@@ -105,23 +105,6 @@ module IssuesHelper
...
@@ -105,23 +105,6 @@ module IssuesHelper
return
'hidden'
if
issue
.
closed?
==
closed
return
'hidden'
if
issue
.
closed?
==
closed
end
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
)
def
merge_requests_sentence
(
merge_requests
)
# Sorting based on the `!123` or `group/project!123` reference will sort
# Sorting based on the `!123` or `group/project!123` reference will sort
# local merge requests first.
# local merge requests first.
...
...
app/views/dashboard/issues.atom.builder
View file @
7001842d
...
@@ -6,8 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
...
@@ -6,8 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.id issues_dashboard_url
xml.id issues_dashboard_url
xml.updated @issues.first.created_at.xmlschema if @issues.any?
xml.updated @issues.first.created_at.xmlschema if @issues.any?
@issues.each do |issue|
xml << render(partial: 'issues/issue', collection: @issues) if @issues.any?
issue_to_atom(xml, issue)
end
end
end
app/views/groups/issues.atom.builder
View file @
7001842d
...
@@ -6,8 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
...
@@ -6,8 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.id issues_group_url
xml.id issues_group_url
xml.updated @issues.first.created_at.xmlschema if @issues.any?
xml.updated @issues.first.created_at.xmlschema if @issues.any?
@issues.each do |issue|
xml << render(partial: 'issues/issue', collection: @issues) if @issues.any?
issue_to_atom(xml, issue)
end
end
end
app/views/issues/_issue.atom.builder
0 → 100644
View file @
7001842d
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 @
7001842d
...
@@ -6,7 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
...
@@ -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.id namespace_project_issues_url(@project.namespace, @project)
xml.updated @issues.first.created_at.xmlschema if @issues.any?
xml.updated @issues.first.created_at.xmlschema if @issues.any?
@issues.each do |issue|
xml << render(partial: 'issues/issue', collection: @issues) if @issues.any?
issue_to_atom(xml, issue)
end
end
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