Mercurial > rsstweet
comparison 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 |
comparison
equal
deleted
inserted
replaced
249:9e5f9ffa4077 | 250:be0b78fb5f57 |
---|---|
1 <% if tweet[:retweet].present? %> | 1 <% if tweet[:retweet].present? %> |
2 <p> | 2 <p><em>Retweeted:</em></p> |
3 <%= link_to status_url(tweet[:retweet]) do %> | |
4 <em>Retweeted:</em> | |
5 <% end %> | |
6 </p> | |
7 | 3 |
8 <%= render "tweet", :tweet => tweet[:retweet], :with_time => true %> | 4 <%= render "tweet", :tweet => tweet[:retweet], :with_time => true %> |
9 <% else %> | 5 <% else %> |
10 <% if defined?(with_time) && with_time %> | 6 <% if defined?(with_time) && with_time %> |
11 <p> | 7 <p> |
12 <small>Originally tweeted at <%= tweet[:created_at].rfc822 %></small> | 8 <small> |
9 Originally <%= link_to 'tweeted', status_url(tweet) %> at <%= tweet[:created_at].rfc822 %> | |
10 </small> | |
13 </p> | 11 </p> |
14 <% end %> | 12 <% end %> |
15 | 13 |
16 <% if tweet[:reply_to_id].present? %> | 14 <% if tweet[:reply_to_id].present? %> |
17 <p> | 15 <p> |