debian-mirror-gitlab/app/views/users/show.atom.builder

11 lines
451 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do
2015-09-11 14:41:01 +05:30
xml.title "#{@user.name} activity"
2015-04-26 12:48:37 +05:30
xml.link href: user_url(@user, :atom), rel: "self", type: "application/atom+xml"
xml.link href: user_url(@user), rel: "alternate", type: "text/html"
2015-09-11 14:41:01 +05:30
xml.id user_url(@user)
2016-04-02 18:10:28 +05:30
xml.updated @events[0].updated_at.xmlschema if @events[0]
2015-04-26 12:48:37 +05:30
xml << render(@events) if @events.any?
2015-04-26 12:48:37 +05:30
end