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

13 lines
500 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)
2015-11-26 14:37:03 +05:30
xml.updated @events.latest_update_time.strftime("%Y-%m-%dT%H:%M:%SZ") if @events.any?
2015-04-26 12:48:37 +05:30
@events.each do |event|
event_to_atom(xml, event)
end
end