diff options
| author | Devin <dsylva@gitlab.com> | 2019-04-24 18:01:20 -1000 |
|---|---|---|
| committer | Devin <dsylva@gitlab.com> | 2019-04-24 18:01:20 -1000 |
| commit | ecd622639ccbe5605e2fc6d83fb8acdde2852e23 (patch) | |
| tree | 7c17b6781a242ce8630f84b0cda0be9a6c87cf59 | |
| parent | 0df424b9f773a3aeefcca2c807625bcd4f8e169d (diff) | |
| download | gitlab-ce-ecd622639ccbe5605e2fc6d83fb8acdde2852e23.tar.gz | |
Changed label fields to category fields to match the atom spec
| -rw-r--r-- | app/views/issues/_issue.atom.builder | 7 |
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 |
