about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2018-04-11 19:35:09 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-04-11 12:35:09 +0200
commit519119f657cf97ec187008a28dba00c1125a9292 (patch)
treef2ee862acd26c65189a0a40df34b60066e26c1ec /app/views
parentd9b62e34da0c0238176f27557ac7b953da94df7e (diff)
Paginate ancestor statuses in public page (#7102)
This also limits the statuses returned by API, but pagination is not
implemented in Web API yet. I still expect it brings user experience
better than making a user wait to fetch all ancestor statuses and flooding
the column with them.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/stream_entries/_status.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/stream_entries/_status.html.haml b/app/views/stream_entries/_status.html.haml
index e2e1fdd12..2d0dafcb7 100644
--- a/app/views/stream_entries/_status.html.haml
+++ b/app/views/stream_entries/_status.html.haml
@@ -14,6 +14,10 @@
   entry_classes = h_class + ' ' + mf_classes + ' ' + style_classes
 
 - if status.reply? && include_threads
+  - if @next_ancestor
+    .entry{ class: entry_classes }
+      = link_to short_account_status_url(@next_ancestor.account.username, @next_ancestor), class: 'more light'  do
+        = t('statuses.show_more')
   = render partial: 'stream_entries/status', collection: @ancestors, as: :status, locals: { is_predecessor: true, direct_reply_id: status.in_reply_to_id }
 
 .entry{ class: entry_classes }