annotate app/views/tweets/_tweet.atom.erb @ 96:148d8c17cb79

Less monkeypatching rails, more monkeypatching tweet
author nanaya <me@myconan.net>
date Thu, 28 Jul 2016 04:25:47 +0900
parents 0c8a8b390145
children f4805ac41656
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 <entry>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
2 <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
3 <published><%= tweet.created_at %></published>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
4 <updated><%= tweet.created_at %></updated>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
5 <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
6 <title><%= ellipsize tweet.text %></title>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
7 <content type="html">
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
8 <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
9 </content>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
10 <author>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
11 <name><%= tweet.user.screen_name %></name>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
12 </author>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
13 </entry>