2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
2017-06-12 17:21:13 +00:00
|
|
|
xml.title "#{@project.name} issues"
|
2018-04-08 04:35:30 +00:00
|
|
|
xml.link href: url_for(safe_params), rel: "self", type: "application/atom+xml"
|
2017-06-29 17:06:35 +00:00
|
|
|
xml.link href: project_issues_url(@project), rel: "alternate", type: "text/html"
|
|
|
|
xml.id project_issues_url(@project)
|
2017-06-12 17:21:13 +00:00
|
|
|
xml.updated @issues.first.updated_at.xmlschema if @issues.reorder(nil).any?
|
2011-11-11 09:29:58 +00:00
|
|
|
|
2017-06-12 17:21:13 +00:00
|
|
|
xml << render(partial: 'issues/issue', collection: @issues) if @issues.reorder(nil).any?
|
2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: enable CodeReuse/ActiveRecord
|