summaryrefslogtreecommitdiff
path: root/app/views/twitter
diff options
context:
space:
mode:
authorluca-marie <ml.kochsiek@fu-berlin.de>2016-08-25 20:50:12 +0200
committerthea <ta.kupler@gmail.com>2016-09-01 12:09:37 +0200
commitfecc0e9e1985be2d3767664453d4776ac20897c0 (patch)
treeb43ea9e5e1044a30b1da7a5fd7a5be5a8a8f7bd3 /app/views/twitter
parent4054060a68c119c509228db34ec139f0a0e0c00a (diff)
Twitter controller now as helper, some more styling in CSS, bug fix
Diffstat (limited to 'app/views/twitter')
-rw-r--r--app/views/twitter/_index.html.erb38
1 files changed, 18 insertions, 20 deletions
diff --git a/app/views/twitter/_index.html.erb b/app/views/twitter/_index.html.erb
index 9825afa..3dab567 100644
--- a/app/views/twitter/_index.html.erb
+++ b/app/views/twitter/_index.html.erb
@@ -1,26 +1,24 @@
-<% unless Rails.application.secrets.twitter['enabled'] == false %>
- <div class=twitter>
+ <div class="twitter">
<div class="twitter_header">
- Tweets by <%= @twitter_name %></p>
+ Tweets by <%= twitter_name %></p>
</div>
- <!-- <p><a href="/followers"> You have <%= @num_followers %> followers.</a></p> -->
- <% @tweets.each do |e| %>
- <div class=tweets>
- <div class="tweets_pic twitter-image-frame"><%= image_tag("team-loadtocode-Loading_icon.gif") %></div>
- <!-- <img class="tweets_pic"></img> -->
- <div class=tweets_name>
- @<%= @twitter_screen_name %>
- </div>
- <div class=tweet_text>
- <%= " #{e.text}" %>
- </div>
- <div class=text_date>
- <%= @tweet_time %> <% t = e.created_at%> <%="#{t.strftime("%m/%d/%Y")}"%>
- </div>
+ <div class="twitter_list">
+ <% tweets.each do |e| %>
+ <div class="tweet">
+ <div class="tweet_pic twitter_image_frame"><%= image_tag("team-loadtocode-Loading_icon.gif") %></div>
+ <div class="tweet_name">
+ @<%= twitter_handle %>
+ </div>
+ <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>
+ </div>
+ <% end %>
</div>
- <% end %>
<div class="twitter_footer">
- To prevent leakage no links are displayed. For more information visit @<%= @twitter_name %> on twitter.com.</p>
+ To prevent leakage no links are displayed. For more information visit @<%= twitter_name %> on twitter.com.</p>
</div>
</div>
- <% end %>