summaryrefslogtreecommitdiff
path: root/app/views/groups/issues.atom.builder
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-04 22:14:20 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-04 22:14:20 +0200
commitd31d711a70779132ea43387f93eb4ccc1e472761 (patch)
tree815c0ae6a327e2937482a43d2b21cf15ac6871c0 /app/views/groups/issues.atom.builder
parenta46fe875c6aea206e575e2b083bd31ed36ee1b1e (diff)
downloadgitlab-ce-d31d711a70779132ea43387f93eb4ccc1e472761.tar.gz
DRY and refactor atom code
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/groups/issues.atom.builder')
-rw-r--r--app/views/groups/issues.atom.builder13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/views/groups/issues.atom.builder b/app/views/groups/issues.atom.builder
index f2005193f83..240001967f3 100644
--- a/app/views/groups/issues.atom.builder
+++ b/app/views/groups/issues.atom.builder
@@ -7,18 +7,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear
xml.updated @issues.first.created_at.strftime("%Y-%m-%dT%H:%M:%SZ") if @issues.any?
@issues.each do |issue|
- xml.entry do
- xml.id project_issue_url(issue.project, issue)
- xml.link :href => project_issue_url(issue.project, issue)
- xml.title truncate(issue.title, :length => 80)
- xml.updated issue.created_at.strftime("%Y-%m-%dT%H:%M:%SZ")
- xml.media :thumbnail, :width => "40", :height => "40", :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
+ issue_to_atom(xml, issue)
end
end