2018-08-27 15:31:01 +00:00
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
2017-06-12 17:21:13 +00:00
|
|
|
xml.title "#{@group.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-12 17:21:13 +00:00
|
|
|
xml.link href: issues_group_url, rel: "alternate", type: "text/html"
|
|
|
|
xml.id issues_group_url
|
|
|
|
xml.updated @issues.first.updated_at.xmlschema if @issues.reorder(nil).any?
|
2012-10-02 17:42:15 +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
|