comparison app/views/tweets/_tweet.html.erb @ 128:d4b2bd9e23f5

Add original tweet date for retweets
author nanaya <me@nanaya.pro>
date Sun, 01 Oct 2017 03:50:28 +0900
parents c9864cf35950
children faae69155f90
comparison
equal deleted inserted replaced
127:05216b67d01d 128:d4b2bd9e23f5
1 <% if tweet.retweeted_status.present? %> 1 <% if tweet.retweeted_status.present? %>
2 <p> 2 <p>
3 <em>Retweeted:</em> 3 <em>Retweeted:</em>
4 <br><small>Originally tweeted at <%= tweet.retweeted_status.created_at.to_s :rfc822 %></small>
4 </p> 5 </p>
5 6
6 <%= render "tweet", :tweet => tweet.retweeted_status %> 7 <%= render "tweet", :tweet => tweet.retweeted_status %>
7 <% else%> 8 <% else%>
8 <p> 9 <p>