Mercurial > rsstweet
diff app/views/tweets/_tweet.html.erb @ 250:be0b78fb5f57
Link to original tweet in tweet header
Otherwise there's no link for quote retweets.
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 17 Jul 2023 20:45:24 +0900 |
parents | 961d362e42c7 |
children | d726e8b92dd1 |
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb Mon Jul 17 04:40:46 2023 +0900 +++ b/app/views/tweets/_tweet.html.erb Mon Jul 17 20:45:24 2023 +0900 @@ -1,15 +1,13 @@ <% if tweet[:retweet].present? %> - <p> - <%= link_to status_url(tweet[:retweet]) do %> - <em>Retweeted:</em> - <% end %> - </p> + <p><em>Retweeted:</em></p> <%= render "tweet", :tweet => tweet[:retweet], :with_time => true %> <% else %> <% if defined?(with_time) && with_time %> <p> - <small>Originally tweeted at <%= tweet[:created_at].rfc822 %></small> + <small> + Originally <%= link_to 'tweeted', status_url(tweet) %> at <%= tweet[:created_at].rfc822 %> + </small> </p> <% end %>