Mercurial > rsstweet
view app/views/tweets/_tweet.html.erb @ 97:ff5557f9902c
Avoid uniformly expiring cache
author | nanaya <me@myconan.net> |
---|---|
date | Thu, 28 Jul 2016 07:08:52 +0900 |
parents | 04ccd0632a71 |
children | c5c095f6981e |
line wrap: on
line source
<% if tweet.retweeted_status.present? %> <p> <em>Retweeted:</em> </p> <%= render "tweet", :tweet => tweet.retweeted_status %> <% else%> <p> <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %> </p> <p> <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %> <%= image_tag tweet.user.profile_image_url_https %> <%= tweet.user.name -%> <% end %> </p> <p> <% tweet.media.each do |media| %> <% if media.is_a? Twitter::Media::Photo %> <%= link_to "#{media.media_url_https}:orig" do %> <%= image_tag "#{media.media_url_https}:small" -%> <% end %> <% end %> <% end %> </p> <% if tweet.quoted_status.present? %> <blockquote> <%= render "tweet", :tweet => tweet.quoted_status %> </blockquote> <% end %> <% end %>