# HG changeset patch # User nanaya # Date 1448900674 -32400 # Node ID a20bbd1e2dc124faaed04a8b00729aaec6a3796a # Parent 9e673e0fc04e59159404f652ccae616f447a9242 Now with avatar and proper retweet styling and stuff diff -r 9e673e0fc04e -r a20bbd1e2dc1 app/views/tweets/_tweet.html.erb --- a/app/views/tweets/_tweet.html.erb Tue Dec 01 01:24:08 2015 +0900 +++ b/app/views/tweets/_tweet.html.erb Tue Dec 01 01:24:34 2015 +0900 @@ -1,17 +1,34 @@ -<%= auto_link(tweet.text).html_safe %> +<% if tweet.retweeted_status.present? %> +

+ Retweeted: +

-

- <% 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" -%> + <%= render "tweet", :tweet => tweet.retweeted_status %> +<% else%> +

+ <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %> + <%= image_tag tweet.user.profile_image_url_https %> + <%= tweet.user.name -%> + <% end %> + + / + + <%= auto_link(tweet.text).html_safe %> +

+ +

+ <% 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 %> - <% end %> -

+

-<% if tweet.quoted_status.present? %> -
- <%= render "tweet", :tweet => tweet.quoted_status %> -
+ <% if tweet.quoted_status.present? %> +
+ <%= render "tweet", :tweet => tweet.quoted_status %> +
+ <% end %> <% end %>