Mercurial > rsstweet
comparison app/views/tweets/_tweet.html.erb @ 98:c5c095f6981e
Expand the urls
author | nanaya <me@myconan.net> |
---|---|
date | Sat, 17 Sep 2016 13:41:05 +0900 |
parents | 04ccd0632a71 |
children | c1d5d8be92c6 |
comparison
equal
deleted
inserted
replaced
97:ff5557f9902c | 98:c5c095f6981e |
---|---|
4 </p> | 4 </p> |
5 | 5 |
6 <%= render "tweet", :tweet => tweet.retweeted_status %> | 6 <%= render "tweet", :tweet => tweet.retweeted_status %> |
7 <% else%> | 7 <% else%> |
8 <p> | 8 <p> |
9 <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %> | 9 <%= auto_link(expand_url(tweet.text)).gsub("\n", "<br>").html_safe %> |
10 </p> | 10 </p> |
11 | 11 |
12 <p> | 12 <p> |
13 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %> | 13 <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %> |
14 <%= image_tag tweet.user.profile_image_url_https %> | 14 <%= image_tag tweet.user.profile_image_url_https %> |