diff options
author | re4k <re4k@re4k.info> | 2013-04-04 03:07:35 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-04-04 03:07:35 +0900 |
commit | 61dde16fd55babd2ccf5ff6a9c8be1f600868d9b (patch) | |
tree | af4e6f14ad16f87e911426e950ff1d72128f8328 /app/views/shared/tweets.html.haml | |
parent | 1b49426b0c935a44262384acb526e5fbb86598c7 (diff) | |
download | aclog-61dde16fd55babd2ccf5ff6a9c8be1f600868d9b.tar.gz |
Add repoting copied tweets form
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 |