2018-08-27 11:31:01 -04:00
|
|
|
# rubocop: disable CodeReuse/ActiveRecord
|
2017-06-12 13:21:13 -04:00
|
|
|
xml.title "#{@group.name} issues"
|
2018-04-08 00:35:30 -04:00
|
|
|
xml.link href: url_for(safe_params), rel: "self", type: "application/atom+xml"
|
2017-06-12 13:21:13 -04: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 13:42:15 -04:00
|
|
|
|
2017-06-12 13:21:13 -04:00
|
|
|
xml << render(partial: 'issues/issue', collection: @issues) if @issues.reorder(nil).any?
|
2018-08-27 11:31:01 -04:00
|
|
|
# rubocop: enable CodeReuse/ActiveRecord
|