Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-05-24 00:06:26 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-05-24 00:06:26 +0300
commit7001842dc463f1ba9ac4f1479c7310c75707c35b (patch)
tree95f8c1a11f96ee3fa96ebb7710552373c37ab12e /app/views/issues
parentc002a560afae7db6a5c778bc78028243c2fc945a (diff)
Remove `issue_to_atom` helper
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/_issue.atom.builder14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/issues/_issue.atom.builder b/app/views/issues/_issue.atom.builder
new file mode 100644
index 00000000000..68a2d19e58d
--- /dev/null
+++ b/app/views/issues/_issue.atom.builder
@@ -0,0 +1,14 @@
+xml.entry do
+ xml.id namespace_project_issue_url(issue.project.namespace, issue.project, issue)
+ xml.link href: namespace_project_issue_url(issue.project.namespace, issue.project, issue)
+ xml.title truncate(issue.title, length: 80)
+ 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.name issue.author_name
+ xml.email issue.author_email
+ end
+
+ xml.summary issue.title
+end