diff app/views/tweets/_tweet.html.erb @ 79:04ccd0632a71

Move user info to bottom Better summary
author nanaya <me@myconan.net>
date Sun, 26 Jun 2016 18:05:41 +0900
parents 585952f98978
children c5c095f6981e
line wrap: on
line diff
--- a/app/views/tweets/_tweet.html.erb	Sun Jun 26 16:55:46 2016 +0900
+++ b/app/views/tweets/_tweet.html.erb	Sun Jun 26 18:05:41 2016 +0900
@@ -6,6 +6,10 @@
   <%= render "tweet", :tweet => tweet.retweeted_status %>
 <% else%>
   <p>
+    <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %>
+  </p>
+
+  <p>
     <%= link_to "https://twitter.com/#{tweet.user.screen_name}" do %>
       <%= image_tag tweet.user.profile_image_url_https %>
       <%= tweet.user.name -%>
@@ -13,10 +17,6 @@
   </p>
 
   <p>
-    <%= auto_link(tweet.text).gsub("\n", "<br>").html_safe %>
-  </p>
-
-  <p>
     <% tweet.media.each do |media| %>
       <% if media.is_a? Twitter::Media::Photo %>
         <%= link_to "#{media.media_url_https}:orig" do %>