comparison app/views/tweets/_tweet.html.erb @ 257:c6a50441a58d

It's now X
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:48:25 +0900
parents d726e8b92dd1
children
comparison
equal deleted inserted replaced
256:604b69827fb2 257:c6a50441a58d
14 <% if tweet[:reply_to_id].present? %> 14 <% if tweet[:reply_to_id].present? %>
15 <p> 15 <p>
16 <small> 16 <small>
17 Replying to 17 Replying to
18 <%= link_to 'tweet', status_url_base(tweet[:reply_to_username], tweet[:reply_to_id]) %> 18 <%= link_to 'tweet', status_url_base(tweet[:reply_to_username], tweet[:reply_to_id]) %>
19 by <%= link_to "@#{tweet[:reply_to_username]}", "https://twitter.com/#{tweet[:reply_to_username]}" %> 19 by <%= link_to "@#{tweet[:reply_to_username]}", "https://x.com/#{tweet[:reply_to_username]}" %>
20 </small> 20 </small>
21 </p> 21 </p>
22 <% end %> 22 <% end %>
23 23
24 <p> 24 <p>
30 .html_safe 30 .html_safe
31 %> 31 %>
32 </p> 32 </p>
33 33
34 <p> 34 <p>
35 <%= link_to "https://twitter.com/#{tweet[:user][:username]}" do %> 35 <%= link_to "https://x.com/#{tweet[:user][:username]}" do %>
36 <%= image_tag tweet[:user][:avatar_url].to_s, :alt => "profile image for #{tweet[:user][:name].printable}" %> 36 <%= image_tag tweet[:user][:avatar_url].to_s, :alt => "profile image for #{tweet[:user][:name].printable}" %>
37 <%= tweet[:user][:name].printable -%> 37 <%= tweet[:user][:name].printable -%>
38 <% end %> 38 <% end %>
39 </p> 39 </p>
40 40