summaryrefslogtreecommitdiff
path: root/app/views/issues
diff options
context:
space:
mode:
authorAlexander Matyushentsev <amatyushentsev@gmail.com>2016-05-15 00:22:01 -0700
committerAlexander Matyushentsev <amatyushentsev@gmail.com>2016-06-13 09:41:34 -0700
commitaf33338bbf752ab5f4dba5b981644b399ae3563b (patch)
tree7a1f0b17d4ec7fa01dd4e358659590540cbf04d4 /app/views/issues
parentc928accd954e5812ccc7d2b0887028da554f2ef3 (diff)
downloadgitlab-ce-af33338bbf752ab5f4dba5b981644b399ae3563b.tar.gz
Add more information into RSS fead for issues
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/_issue.atom.builder20
1 files changed, 19 insertions, 1 deletions
diff --git a/app/views/issues/_issue.atom.builder b/app/views/issues/_issue.atom.builder
index 68a2d19e58d..96831874144 100644
--- a/app/views/issues/_issue.atom.builder
+++ b/app/views/issues/_issue.atom.builder
@@ -5,10 +5,28 @@ xml.entry do
xml.updated issue.created_at.xmlschema
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(issue.author_email))
- xml.author do |author|
+ xml.author do
xml.name issue.author_name
xml.email issue.author_email
end
xml.summary issue.title
+ xml.description issue.description if issue.description
+ xml.milestone issue.milestone.title if issue.milestone
+ xml.due_date issue.due_date if issue.due_date
+
+ unless issue.labels.empty?
+ xml.labels do
+ issue.labels.each do |label|
+ xml.label label.name
+ end
+ end
+ end
+
+ if issue.assignee
+ xml.assignee do
+ xml.name issue.assignee.name
+ xml.email issue.assignee.email
+ end
+ end
end