about summary refs log tree commit diff
path: root/app/views/accounts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-03 19:30:13 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-03 19:30:13 +0100
commit5abf64d647b6f36a51f014b63f7b469b43378d3f (patch)
treeef5426f905958365eb312ba29b7957af8245c8a8 /app/views/accounts
parentec44cff9a2e7e5a522f2c0685745f1ab6d58436f (diff)
Add "next" pagination to public profiles
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/show.html.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml
index c04faa32f..db8e45e6b 100644
--- a/app/views/accounts/show.html.haml
+++ b/app/views/accounts/show.html.haml
@@ -14,4 +14,6 @@
   .activity-stream
     = render partial: 'stream_entries/status', collection: @statuses, as: :status
 
-= id_paginate account_url(@account), 20, @statuses
+.pagination
+  - if @statuses.size == 20
+    = link_to safe_join([t('pagination.next'), fa_icon('chevron-right')], ' '), account_url(@account, max_id: @statuses.last.id), class: 'next_page', rel: 'next'