comparison app/views/tweets/_tweet.atom.erb @ 168:0c60db0a3686

Less escaping, more xhtml
author nanaya <me@nanaya.pro>
date Wed, 08 Aug 2018 19:52:06 +0900
parents 3ad8e6d20e79
children df4be896ab8b
comparison
equal deleted inserted replaced
167:522d832d8a8c 168:0c60db0a3686
2 <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id> 2 <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id>
3 <published><%= tweet.created_at.xmlschema %></published> 3 <published><%= tweet.created_at.xmlschema %></published>
4 <updated><%= tweet.created_at.xmlschema %></updated> 4 <updated><%= tweet.created_at.xmlschema %></updated>
5 <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/> 5 <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/>
6 <title><%= ellipsize tweet.attrs[:full_text] %></title> 6 <title><%= ellipsize tweet.attrs[:full_text] %></title>
7 <content type="html"> 7 <content type="xhtml">
8 <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %> 8 <div xmlns="http://www.w3.org/1999/xhtml">
9 <%= render :partial => "tweet", :formats => :html, :locals => { :tweet => tweet } %>
10 </div>
9 </content> 11 </content>
10 <author> 12 <author>
11 <name><%= tweet.user.screen_name %></name> 13 <name><%= tweet.user.screen_name %></name>
12 </author> 14 </author>
13 </entry> 15 </entry>