Mercurial > rsstweet
comparison app/views/tweets/show.atom.builder @ 80:448a368f7344
More useful title?
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 26 Jun 2016 18:18:54 +0900 |
parents | 1161ad2a4390 |
children | 101904debfcd |
comparison
equal
deleted
inserted
replaced
79:04ccd0632a71 | 80:448a368f7344 |
---|---|
2 feed.title "#{@user.name} (@#{@user.screen_name})" | 2 feed.title "#{@user.name} (@#{@user.screen_name})" |
3 feed.updated @tweets.first.try(:created_at) || Time.at(0) | 3 feed.updated @tweets.first.try(:created_at) || Time.at(0) |
4 | 4 |
5 @tweets.each do |tweet| | 5 @tweets.each do |tweet| |
6 feed.entry tweet, :url => tweet.uri, :updated => tweet.created_at do |entry| | 6 feed.entry tweet, :url => tweet.uri, :updated => tweet.created_at do |entry| |
7 entry.title tweet.created_at.rfc2822 | 7 entry.title ellipsize(tweet.text) |
8 entry.content render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }), :type => "html" | 8 entry.content render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }), :type => "html" |
9 entry.author do |author| | 9 entry.author do |author| |
10 author.name tweet.user.screen_name | 10 author.name tweet.user.screen_name |
11 end | 11 end |
12 end | 12 end |