user.atom.eex (1189B)
- <?xml version="1.0" encoding="UTF-8"?>
- <feed
- xmlns="http://www.w3.org/2005/Atom"
- xmlns:thr="http://purl.org/syndication/thread/1.0"
- xmlns:activity="http://activitystrea.ms/spec/1.0/"
- xmlns:poco="http://portablecontacts.net/spec/1.0"
- xmlns:ostatus="http://ostatus.org/schema/1.0">
- <id><%= Routes.user_feed_url(@conn, :feed, @user.nickname) <> ".atom" %></id>
- <title><%= @user.nickname <> "'s timeline" %></title>
- <subtitle><%= escape(@user.bio) %></subtitle>
- <updated><%= most_recent_update(@activities, @user, :atom) %></updated>
- <logo><%= logo(@user) %></logo>
- <link rel="self" href="<%= '#{Routes.user_feed_url(@conn, :feed, @user.nickname)}.atom' %>" type="application/atom+xml"/>
- <%= render Phoenix.Controller.view_module(@conn), "_author.atom", assigns %>
- <%= if last_activity(@activities) do %>
- <link rel="next" href="<%= '#{Routes.user_feed_url(@conn, :feed, @user.nickname)}.atom?max_id=#{last_activity(@activities).id}' %>" type="application/atom+xml"/>
- <% end %>
- <%= for activity <- @activities do %>
- <%= render Phoenix.Controller.view_module(@conn), "_activity.atom", Map.merge(assigns, prepare_activity(activity)) %>
- <% end %>
- </feed>