diff options
author | theaamanda <theaamanda@users.noreply.github.com> | 2016-09-30 12:21:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-30 12:21:58 +0200 |
commit | e9fcc6748aeb0d8cd677a79c30f314e92c0e9b62 (patch) | |
tree | 78173c93462cd629b1043c176cc2bccab02204aa /app/views/twitter | |
parent | 69b182b1bf811e1d09c734debf0f71f8412dd6b7 (diff) | |
parent | 8a9ef9e96193a737b8d21e1f21db43d0d69394ef (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/twitter')
-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> |