summaryrefslogtreecommitdiff
path: root/app/views/twitter
diff options
context:
space:
mode:
authorluca-marie <ml.kochsiek@fu-berlin.de>2016-08-29 17:39:46 +0200
committerthea <ta.kupler@gmail.com>2016-09-01 12:09:37 +0200
commitea3fc6ffbb8f90aff28ce56fe4432a8d3ff18caa (patch)
tree0cd03af6e30206c272c9fe2b8cd78fdc51c17b24 /app/views/twitter
parente3af6664f997d4dff227fdcd0246eff516520e96 (diff)
Changes mainly on CSS 'fine tuning' and shortening the Twitter API credentials,
- only bearer token is needed to access Twitter API
Diffstat (limited to 'app/views/twitter')
-rw-r--r--app/views/twitter/_index.html.erb22
1 files changed, 15 insertions, 7 deletions
diff --git a/app/views/twitter/_index.html.erb b/app/views/twitter/_index.html.erb
index 8ac65be..eba9675 100644
--- a/app/views/twitter/_index.html.erb
+++ b/app/views/twitter/_index.html.erb
@@ -1,26 +1,34 @@
<% if twitter_enabled == true %>
<div class="twitter">
+
<div class="twitter_header">
- Tweets by <%= twitter_name %></p>
+ Tweets by </br><%= twitter_name %></p>
</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 class="tweet_name">
+ @<%= twitter_handle %>
+ </div>
</div>
- <div class="tweet_text">
- <%= " #{e.text}" %>
+
+ <div class="tweet_text"><%= " #{e.text}" %>
</div>
- <div class="tweet_text_date">
- tweeted on <% t = e.created_at%> <%= t.strftime("%m/%d/%y").to_s %>
+
+ <div class="tweet_text_date">tweeted on <% t = e.created_at%> <%= t.strftime("%m/%d/%y").to_s %>
</div>
+
</div>
<% end %>
</div>
+
<div class="twitter_footer">
To prevent leakage no links are displayed. For more information visit @<%= twitter_name %> on twitter.com.</p>
</div>
+
</div>
<% end %>