comparison app/views/tweets/_tweet.html.erb @ 229:12287b32fbda

Show link to parent tweet for replies
author nanaya <me@nanaya.pro>
date Wed, 13 Apr 2022 01:49:51 +0900
parents ad6264cca788
children 7a773720d81f
comparison
equal deleted inserted replaced
228:2a4ed5b73c73 229:12287b32fbda
8 <%= render "tweet", :tweet => tweet.retweeted_status, :with_time => true %> 8 <%= render "tweet", :tweet => tweet.retweeted_status, :with_time => true %>
9 <% else%> 9 <% else%>
10 <% if defined?(with_time) && with_time %> 10 <% if defined?(with_time) && with_time %>
11 <p> 11 <p>
12 <small>Originally tweeted at <%= tweet.created_at.rfc822 %></small> 12 <small>Originally tweeted at <%= tweet.created_at.rfc822 %></small>
13 </p>
14 <% end %>
15
16 <% if tweet.in_reply_to_status_id.present? %>
17 <p>
18 <small>
19 Replying to
20 <%= link_to 'tweet', status_url_base(tweet.in_reply_to_screen_name, tweet.in_reply_to_status_id) %>
21 by <%= link_to tweet.in_reply_to_screen_name, "https://twitter.com/#{tweet.in_reply_to_screen_name}" %>
22 </small>
13 </p> 23 </p>
14 <% end %> 24 <% end %>
15 25
16 <p> 26 <p>
17 <%# FIXME: Twitter gem doesn't support extended mode when writing this %> 27 <%# FIXME: Twitter gem doesn't support extended mode when writing this %>