Mercurial > rsstweet
view app/views/tweets/_tweet.atom.erb @ 190:7b1bdf697063
Add direct link for retweet
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 27 Jul 2019 13:57:48 +0900 |
parents | df4be896ab8b |
children | 70e90ea4b870 |
line wrap: on
line source
<entry> <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id> <published><%= tweet.created_at.xmlschema %></published> <updated><%= tweet.created_at.xmlschema %></updated> <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/> <title><%= truncate tweet.unescaped_text, :length => 30 %></title> <content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> <%= render :partial => "tweet", :formats => :html, :locals => { :tweet => tweet } %> </div> </content> <author> <name><%= tweet.user.screen_name %></name> </author> </entry>