summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authortheaamanda <theaamanda@users.noreply.github.com>2016-09-30 12:21:58 +0200
committerGitHub <noreply@github.com>2016-09-30 12:21:58 +0200
commite9fcc6748aeb0d8cd677a79c30f314e92c0e9b62 (patch)
tree78173c93462cd629b1043c176cc2bccab02204aa /app/views
parent69b182b1bf811e1d09c734debf0f71f8412dd6b7 (diff)
parent8a9ef9e96193a737b8d21e1f21db43d0d69394ef (diff)
Merge pull request #18 from LoadToCode/thea
added 'show more tweets'-link when more tweets are existing than displayed + method included to set number of tweets which should be displayed
Diffstat (limited to 'app/views')
-rw-r--r--app/views/twitter/_index.html.erb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/twitter/_index.html.erb b/app/views/twitter/_index.html.erb
index cdfff4b..6e592c7 100644
--- a/app/views/twitter/_index.html.erb
+++ b/app/views/twitter/_index.html.erb
@@ -18,9 +18,16 @@
</div>
</div>
<% end %>
- </div>
+ <%if all_tweets_count > num_of_tweets then%>
+ <div class="tweet">
+ <div class="more_tweets_link"><a href="https://twitter.com/<%= twitter_handle %>">Show more tweets...</a>
+ </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>