Mercurial > rsstweet
diff app/views/tweets/_tweet.atom.erb @ 94:0c8a8b390145
Now with epic caching
And kicking out builder because I can't figure out how to cache it ;_;
author | nanaya <me@myconan.net> |
---|---|
date | Thu, 28 Jul 2016 03:49:08 +0900 |
parents | |
children | f4805ac41656 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/tweets/_tweet.atom.erb Thu Jul 28 03:49:08 2016 +0900 @@ -0,0 +1,13 @@ +<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.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>