Mercurial > rsstweet
changeset 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 | 9e5f9ffa4077 |
children | 43cbceac80ab |
files | app/views/tweets/_tweet.html.erb |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
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 %>