comparison app/views/tweets/_tweet.html.erb @ 79:04ccd0632a71

Move user info to bottom Better summary
author nanaya <me@myconan.net>
date Sun, 26 Jun 2016 18:05:41 +0900
parents 585952f98978
children c5c095f6981e
comparison
equal deleted inserted replaced
78:924b3a4ed3ef 79:04ccd0632a71
4 </p> 4 </p>
5 5
6 <%= render "tweet", :tweet => tweet.retweeted_status %> 6 <%= render "tweet", :tweet => tweet.retweeted_status %>
7 <% else%> 7 <% else%>
8 <p> 8 <p>
9 <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %>
10 </p>
11
12 <p>
9 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %> 13 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %>
10 <%= image_tag tweet.user.profile_image_url_https %> 14 <%= image_tag tweet.user.profile_image_url_https %>
11 <%= tweet.user.name -%> 15 <%= tweet.user.name -%>
12 <% end %> 16 <% end %>
13 </p>
14
15 <p>
16 <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %>
17 </p> 17 </p>
18 18
19 <p> 19 <p>
20 <% tweet.media.each do |media| %> 20 <% tweet.media.each do |media| %>
21 <% if media.is_a? Twitter::Media::Photo %> 21 <% if media.is_a? Twitter::Media::Photo %>