view app/views/tweets/_tweet.atom.erb @ 102:f4805ac41656

Fix title
author nanaya <me@myconan.net>
date Fri, 23 Sep 2016 23:10:54 +0900
parents 0c8a8b390145
children f2398d2a6859
line wrap: on
line source

<entry>
  <id><%= atom_id "#{tweet.user.id}/#{tweet.id}" %></id>
  <published><%= tweet.created_at %></published>
  <updated><%= tweet.created_at %></updated>
  <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/>
  <title><%= ellipsize tweet.to_hash[:full_text] %></title>
  <content type="html">
    <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %>
  </content>
  <author>
    <name><%= tweet.user.screen_name %></name>
  </author>
</entry>