annotate app/views/tweets/show.atom.erb @ 99:56fd4829e599

Update gems
author nanaya <me@myconan.net>
date Sat, 17 Sep 2016 13:42:12 +0900
parents 148d8c17cb79
children 3ad8e6d20e79
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
96
148d8c17cb79 Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents: 95
diff changeset
15 <%= render :partial => "tweet", :collection => @tweets, :cached => true %>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
16 </feed>