diff options
author | luca-marie <ml.kochsiek@fu-berlin.de> | 2016-09-01 12:17:05 +0200 |
---|---|---|
committer | luca-marie <ml.kochsiek@fu-berlin.de> | 2016-09-01 14:19:14 +0200 |
commit | 92e7b90d619111fdaaf50ab0b8538c39605fe005 (patch) | |
tree | 8c72966a52302ea688574ef2476b3a959e4c576e /app/views/twitter/_index.html.erb | |
parent | ea3fc6ffbb8f90aff28ce56fe4432a8d3ff18caa (diff) |
Updating the view and CSS, no pic and twitter handle in each tweet;
Displaying only 3 most tweets
Diffstat (limited to 'app/views/twitter/_index.html.erb')
-rw-r--r-- | app/views/twitter/_index.html.erb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/app/views/twitter/_index.html.erb b/app/views/twitter/_index.html.erb index eba9675..2d17aad 100644 --- a/app/views/twitter/_index.html.erb +++ b/app/views/twitter/_index.html.erb @@ -2,20 +2,17 @@ <div class="twitter"> <div class="twitter_header"> - Tweets by </br><%= twitter_name %></p> + <p>These are the most recent tweets by </br><%= twitter_name%></p> + + <div class="twitter_id"> + <div class="twitter_pic twitter_image_frame"><%= image_tag("rails.png") %></div> + <div class="twitter_name"><a href="https://twitter.com/loadtocode">@<%= twitter_handle %></a></div> + </div> </div> <div class="twitter_list"> <% tweets.each do |e| %> <div class="tweet"> - - <div class="tweet_title"> - <div class="tweet_pic twitter_image_frame"><%= image_tag("team-loadtocode-Loading_icon.gif") %></div> - <div class="tweet_name"> - @<%= twitter_handle %> - </div> - </div> - <div class="tweet_text"><%= " #{e.text}" %> </div> @@ -29,6 +26,5 @@ <div class="twitter_footer"> To prevent leakage no links are displayed. For more information visit @<%= twitter_name %> on twitter.com.</p> </div> - - </div> +</div> <% end %> |