summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin <dsylva@gitlab.com>2019-04-24 18:01:20 -1000
committerDevin <dsylva@gitlab.com>2019-04-24 18:01:20 -1000
commitecd622639ccbe5605e2fc6d83fb8acdde2852e23 (patch)
tree7c17b6781a242ce8630f84b0cda0be9a6c87cf59
parent0df424b9f773a3aeefcca2c807625bcd4f8e169d (diff)
downloadgitlab-ce-ecd622639ccbe5605e2fc6d83fb8acdde2852e23.tar.gz
Changed label fields to category fields to match the atom spec
-rw-r--r--app/views/issues/_issue.atom.builder7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/issues/_issue.atom.builder b/app/views/issues/_issue.atom.builder
index 97571d4cc83..eb6db0bb6e5 100644
--- a/app/views/issues/_issue.atom.builder
+++ b/app/views/issues/_issue.atom.builder
@@ -15,11 +15,10 @@ xml.entry do
xml.milestone issue.milestone.title if issue.milestone
xml.due_date issue.due_date if issue.due_date
+ # Specifies a category that the entry belongs to. A entry may have multiple category elements.
unless issue.labels.empty?
- xml.labels do
- issue.labels.each do |label|
- xml.label label.name
- end
+ issue.labels.each do |label|
+ xml.category term: label.name, label: label.name
end
end