Mercurial > rsstweet
view app/views/tweets/_tweet.html.erb @ 106:3ad8e6d20e79
Fix atom feed compliances
- date format according to xml
- no spacing for updated tag
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 16 Oct 2016 05:45:21 +0900 |
parents | 1251b3d6ec5d |
children | 61414d0a367b |
line wrap: on
line source
<% if tweet.retweeted_status.present? %> <p> <em>Retweeted:</em> </p> <%= render "tweet", :tweet => tweet.retweeted_status %> <% else%> <p> <%# FIXME: Twitter gem doesn't support extended mode when writing this %> <%= auto_link(expand_url( tweet.attrs[:full_text], tweet.attrs[:entities][:urls], tweet.attrs[:entities][:media] )) .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 %>