comparison app/views/tweets/_tweet.html.erb @ 64:a20bbd1e2dc1

Now with avatar and proper retweet styling and stuff
author nanaya <me@myconan.net>
date Tue, 01 Dec 2015 01:24:34 +0900
parents 9ab79a764434
children eecb35eac2f3
comparison
equal deleted inserted replaced
63:9e673e0fc04e 64:a20bbd1e2dc1
1 <%= auto_link(tweet.text).html_safe %> 1 <% if tweet.retweeted_status.present? %>
2 <p>
3 <em>Retweeted:</em>
4 </p>
2 5
3 <p> 6 <%= render "tweet", :tweet => tweet.retweeted_status %>
4 <% tweet.media.each do |media| %> 7 <% else%>
5 <% if media.is_a? Twitter::Media::Photo %> 8 <p>
6 <%= link_to "#{media.media_url_https}:orig" do %> 9 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %>
7 <%= image_tag "#{media.media_url_https}:small" -%> 10 <%= image_tag tweet.user.profile_image_url_https %>
11 <%= tweet.user.name -%>
12 <% end %>
13
14 /
15
16 <%= auto_link(tweet.text).html_safe %>
17 </p>
18
19 <p>
20 <% tweet.media.each do |media| %>
21 <% if media.is_a? Twitter::Media::Photo %>
22 <%= link_to "#{media.media_url_https}:orig" do %>
23 <%= image_tag "#{media.media_url_https}:small" -%>
24 <% end %>
8 <% end %> 25 <% end %>
9 <% end %> 26 <% end %>
27 </p>
28
29 <% if tweet.quoted_status.present? %>
30 <blockquote>
31 <%= render "tweet", :tweet => tweet.quoted_status %>
32 </blockquote>
10 <% end %> 33 <% end %>
11 </p>
12
13 <% if tweet.quoted_status.present? %>
14 <blockquote>
15 <%= render "tweet", :tweet => tweet.quoted_status %>
16 </blockquote>
17 <% end %> 34 <% end %>