comparison app/views/tweets/_tweet.html.erb @ 190:7b1bdf697063

Add direct link for retweet
author nanaya <me@nanaya.pro>
date Sat, 27 Jul 2019 13:57:48 +0900
parents 38598ae5a8f6
children 40c828f83657
comparison
equal deleted inserted replaced
189:df86d579634e 190:7b1bdf697063
1 <% if tweet.retweeted_status.present? %> 1 <% if tweet.retweeted_status.present? %>
2 <p> 2 <p>
3 <em>Retweeted:</em> 3 <%= link_to tweet.retweeted_status.uri.to_s do %>
4 <em>Retweeted:</em>
5 <% end %>
4 </p> 6 </p>
5 7
6 <%= render "tweet", :tweet => tweet.retweeted_status, :with_time => true %> 8 <%= render "tweet", :tweet => tweet.retweeted_status, :with_time => true %>
7 <% else%> 9 <% else%>
8 <% if defined?(with_time) && with_time %> 10 <% if defined?(with_time) && with_time %>