annotate app/views/tweets/_tweet.atom.erb @ 169:04ca6c4f11d0

xhtml compliance
author nanaya <me@nanaya.pro>
date Wed, 08 Aug 2018 20:19:08 +0900
parents 0c60db0a3686
children df4be896ab8b
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>
106
3ad8e6d20e79 Fix atom feed compliances
nanaya <me@myconan.net>
parents: 104
diff changeset
3 <published><%= tweet.created_at.xmlschema %></published>
3ad8e6d20e79 Fix atom feed compliances
nanaya <me@myconan.net>
parents: 104
diff changeset
4 <updated><%= tweet.created_at.xmlschema %></updated>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
5 <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/>
104
f2398d2a6859 Prefer .attrs to .to_hash
nanaya <me@myconan.net>
parents: 102
diff changeset
6 <title><%= ellipsize tweet.attrs[:full_text] %></title>
168
0c60db0a3686 Less escaping, more xhtml
nanaya <me@nanaya.pro>
parents: 106
diff changeset
7 <content type="xhtml">
0c60db0a3686 Less escaping, more xhtml
nanaya <me@nanaya.pro>
parents: 106
diff changeset
8 <div xmlns="http://www.w3.org/1999/xhtml">
0c60db0a3686 Less escaping, more xhtml
nanaya <me@nanaya.pro>
parents: 106
diff changeset
9 <%= render :partial => "tweet", :formats => :html, :locals => { :tweet => tweet } %>
0c60db0a3686 Less escaping, more xhtml
nanaya <me@nanaya.pro>
parents: 106
diff changeset
10 </div>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
11 </content>
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 <name><%= tweet.user.screen_name %></name>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
14 </author>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
15 </entry>