aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared/tweets.html.haml
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-04-04 03:07:35 +0900
committerre4k <re4k@re4k.info>2013-04-04 03:07:35 +0900
commit61dde16fd55babd2ccf5ff6a9c8be1f600868d9b (patch)
treeaf4e6f14ad16f87e911426e950ff1d72128f8328 /app/views/shared/tweets.html.haml
parent1b49426b0c935a44262384acb526e5fbb86598c7 (diff)
downloadaclog-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.haml7
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 &#8250;")
+ - if @page_param
+ = paginate(@items)
- elsif @items.last
- = link_to raw("Next &#8250;"), params.merge(:max_id => @items.last.id - 1), :rel => :next
+ .pagination
+ = link_to raw("Next &#8250;"), params.merge(:max_id => @items.last.id - 1), :rel => :next