summaryrefslogtreecommitdiff
path: root/app/views/twitter/_index.html.erb
blob: cdfff4bdb5a9f8f780cc1fea61afc96134e67cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<% if twitter_enabled == true %>
  <div class="twitter">

      <div class="twitter_header">
        <div class="twitter_id">
          <div class="twitter_image_frame"><%= image_tag("Avatar_Pic.png") %></div>
          <div class="twitter_name"><%= twitter_name%><br><a href="https://twitter.com/<%= twitter_handle %>">@<%= twitter_handle %></a></div>
        </div>
      </div>

      <div class="twitter_list">
        <%if tweets == [] then%><%= error_message %><% end %>
          <% tweets.each do |e| %>
            <div class="tweet">
              <div class="tweet_text"><%= sanitize(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>

    <div class="twitter_footer">
      <p>This feed uses a Ruby interface to access the Twitter API. Within LEAP Twitter does not track you.</p>
    </div>
</div>
<% end %>