comparison app/views/tweets/_tweet.html.erb @ 125:61414d0a367b

Less breakage
author nanaya <me@nanaya.pro>
date Wed, 23 Aug 2017 16:35:58 +0900
parents 1251b3d6ec5d
children c9864cf35950
comparison
equal deleted inserted replaced
124:533317c0b33d 125:61414d0a367b
6 <%= render "tweet", :tweet => tweet.retweeted_status %> 6 <%= render "tweet", :tweet => tweet.retweeted_status %>
7 <% else%> 7 <% else%>
8 <p> 8 <p>
9 <%# FIXME: Twitter gem doesn't support extended mode when writing this %> 9 <%# FIXME: Twitter gem doesn't support extended mode when writing this %>
10 <%= auto_link(expand_url( 10 <%= auto_link(expand_url(
11 tweet.attrs[:full_text], 11 tweet.attrs[:full_text].printable,
12 tweet.attrs[:entities][:urls], 12 tweet.attrs[:entities][:urls],
13 tweet.attrs[:entities][:media] 13 tweet.attrs[:entities][:media]
14 )) 14 ))
15 .gsub("\n", "<br>") 15 .gsub("\n", "<br>")
16 .html_safe 16 .html_safe
18 </p> 18 </p>
19 19
20 <p> 20 <p>
21 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %> 21 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %>
22 <%= image_tag tweet.user.profile_image_url_https %> 22 <%= image_tag tweet.user.profile_image_url_https %>
23 <%= tweet.user.name -%> 23 <%= tweet.user.name.printable -%>
24 <% end %> 24 <% end %>
25 </p> 25 </p>
26 26
27 <p> 27 <p>
28 <% tweet.media.each do |media| %> 28 <% tweet.media.each do |media| %>