summaryrefslogtreecommitdiff
path: root/app/views/twitter
diff options
context:
space:
mode:
authorluca-marie <ml.kochsiek@fu-berlin.de>2016-08-24 15:23:07 +0200
committerthea <ta.kupler@gmail.com>2016-09-01 12:08:46 +0200
commite1e98d0229b8b79de2105515f0312903a23dc335 (patch)
tree2a7b0c492ffbd9819f05b226e263d5826fcc44d9 /app/views/twitter
parent92481029074f34342cc35937f3aab94aca7887c7 (diff)
Update with Twitter
Diffstat (limited to 'app/views/twitter')
-rw-r--r--app/views/twitter/_index.html.erb26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/views/twitter/_index.html.erb b/app/views/twitter/_index.html.erb
new file mode 100644
index 0000000..9825afa
--- /dev/null
+++ b/app/views/twitter/_index.html.erb
@@ -0,0 +1,26 @@
+<% unless Rails.application.secrets.twitter['enabled'] == false %>
+ <div class=twitter>
+ <div class="twitter_header">
+ 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>
+ <% end %>
+ <div class="twitter_footer">
+ To prevent leakage no links are displayed. For more information visit @<%= @twitter_name %> on twitter.com.</p>
+ </div>
+ </div>
+ <% end %>