annotate app/views/tweets/show.atom.erb @ 95:dfd7daac110e

Simpler syntax because I can
author nanaya <me@myconan.net>
date Thu, 28 Jul 2016 03:56:56 +0900
parents 0c8a8b390145
children 148d8c17cb79
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
3 <id><%= atom_id(@user.id) %></id>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
4
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
5 <link rel="alternate" type="text/html" href="<%= request.protocol %><%= request.host_with_port %>" />
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
7
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
8 <title><%= "#{@user.name} (#{@user.screen_name})" %></title>
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
9 <icon><%= @user.profile_image_url_https %></icon>
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
10
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
11 <updated>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
12 <%= @tweets.first.try(:created_at) || Time.at(0) %>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
13 </updated>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
14
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
15 <%= render :partial => "tweet", :collection => @tweets, :cached => ->(f) { f.id } %>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
16 </feed>