diff options
author | thea <ta.kupler@gmail.com> | 2016-09-30 12:13:22 +0200 |
---|---|---|
committer | thea <ta.kupler@gmail.com> | 2016-09-30 12:13:22 +0200 |
commit | 8a9ef9e96193a737b8d21e1f21db43d0d69394ef (patch) | |
tree | 78173c93462cd629b1043c176cc2bccab02204aa /app/views | |
parent | c57a00e63902aac9ed7149c82670b34b3ffa8de3 (diff) |
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.erb | 9 |
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> |