diff options
Diffstat (limited to 'app/views/shared/tweets.html.haml')
-rw-r--r-- | app/views/shared/tweets.html.haml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/shared/tweets.html.haml b/app/views/shared/tweets.html.haml index bce37c4..0ab1a69 100644 --- a/app/views/shared/tweets.html.haml +++ b/app/views/shared/tweets.html.haml @@ -5,7 +5,8 @@ .loading = image_tag "loading.gif", :alt => "loading...", :title => nil - if @items - - if params[:page] - = link_to_next_page @items, raw("Next ›") + - if @page_param + = paginate(@items) - elsif @items.last - = link_to raw("Next ›"), params.merge(:max_id => @items.last.id - 1), :rel => :next + .pagination + = link_to raw("Next ›"), params.merge(:max_id => @items.last.id - 1), :rel => :next |